Open AdrianButler opened 2 months ago
this reads similar to https://github.com/sveltejs/svelte/issues/12601
please try updating to vite-plugin-svelte@^4.0.0-next.6. (requires using an override in your package.json)
if it does not fix the issue, we require a repo link with a reproduction, to be able to investigate.
Describe the bug
I am getting this error and my svelte component will not load at all. It works perfectly fine in dev environment but when I build or run preview it stops working and the error is thrown in the console.
Reproduction
https://gist.github.com/AdrianButler/4b04009c797bf37599c6763d09111a0b
This component is being used in a astro file with the client directive of load
This only happens in production build and the component works perfectly fine in dev environment
Logs
System Info
Severity
blocking all usage of svelte