evidence-dev / evidence

Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
https://evidence.dev
MIT License
4.21k stars 199 forks source link

[Bug]: Customizing the layout throws error in build step #2599

Closed dantodor closed 3 hours ago

dantodor commented 3 hours ago

Describe the bug

I'm trying to add some customized layout to an Evidence site. As per docs, I'm adding a +layout.svelte to the root of the pages folder. When I run npm run build , evidence throws this error

"EvidenceDefaultLayout" is not exported by "../../node_modules/@evidence-dev/core-components/dist/index.js", imported by "src/pages/+layout.svelte".

What am I doing wrong?

Steps to Reproduce

Logs

No response

System Info

No response

Severity

annoyance

Additional Information, or Workarounds

No response

dantodor commented 3 hours ago

Please ignore. I was probably using an old template. I built a new project and it works.