Skip to content

Charts cannot be implemented due to toolchain mismatch #22

Description

@averwhy

I was getting “no loader for .svelte” errors, so i added layerchart and layercake to ssr.noExternal in vite.config.ts, which solved that, but now when tailwind tries to parse the components with the charts, they get handed over in a script-ish form containing things like getContext and setContext. This results in errors like

Invalid declaration ...
Unknown word getContext

ultimately this is because layerchart depends on layercake Svelte components inside node_modules. currently the site is on svelte 5 + vite 7 + tailwind v4 plugin pipeline + layerchart/layercake packaging

going forward, in order to implement this, layercake has to decide to work with our stack, or tailwind/vite has to handle the virtual svelte modules properly

For the time being, i have to delete the event-statistics.svelte component, but it's available here once this is fixed: https://github.com/averwhy/Penpoint/blob/ee815c6fed77ebe8a1e5c7f2fc6c572b04abce22/src/lib/components/event-statistics.svelte

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions