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
I was getting “no loader for .svelte” errors, so i added layerchart and layercake to
ssr.noExternalinvite.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 likegetContextandsetContext. This results in errors likeultimately 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 packaginggoing 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.sveltecomponent, but it's available here once this is fixed: https://github.com/averwhy/Penpoint/blob/ee815c6fed77ebe8a1e5c7f2fc6c572b04abce22/src/lib/components/event-statistics.svelte