Closed vedam closed 2 years ago
Have you solved this issue?
Not really. I still get this error on a fresh start. After reloading the browser it's gone and everything's working.
Ok finally, thx to J on svelte-discord this change in svelte.config.js
seems a solution:
const config = {
...
vite: {
optimizeDeps: {
exclude: ['svelte-knobby']
},
ssr: {
noExternal: ['svelte-knobby']
}
}
...
};
I still don't know why I had to do this, but hey, it worked for me.
@vedam , thanks for this workaround. this worked!
I wanted to give svelte-knobby a try and got the following. Unfortunately I don't know where this belongs to: Is it vite, svelteKit, svelte-knobby or at least is it just me? I made a clean svelteKit and svelte-knobby install and on
pnpm run dev
:Edit: Meanwhile I noticed that the page looks as expected if I reload the page after I started it. I still get the error on starting it.