Open udos86 opened 1 year ago
@udos86 thx, I need to review all dependencies
I think this happens because kolorist
is in your devDependencies
& is listed as an external
but you import it here https://github.com/vite-pwa/sveltekit/blob/c6c34992a1cd5cec2bb58ea1ae82273c9308048c/src/plugins/SvelteKitPlugin.ts#L106 to log info to the console during vite build process.
You should probably remove kolorist
from the external
here?
might be nice to know:
I ran into this issue and setting babel: false,
in the svelte.config.js fixed my failing prod build and the build results were as expected afterwards
any news on this one? :)
Any updates on this issue? We also encountered it.
Building a SvelteKit application with latest
@vite-pwa/sveltekit
fails out of the box with the following error:My package versions:
After installing
kolorist
manually everything works fine.So in order to fix this,
kolorist
should be added todependencies
and removed fromdevDependencies
inpackage.json
of@vite-pwa/sveltekit
.My service worker under
src/service-worker.ts
:My Vite config: