Open nicodes opened 1 year ago
Weirdly enough I had the same but I figured out it was because I used yarn
instead of npm install
in my NPM project .. Not sure if some new pkg update which yarn did not follow broke anything, but at least it works now for me.
Yeah, it's caused by installing @vite-pwa/sveltekit
using yarn instead of npm.
Workaround: yarn add -D vite-plugin-pwa
@rbozan @j-tai I used pnpm
but the docs say it's supported https://vite-pwa-org.netlify.app/frameworks/sveltekit.html
I'm getting an error when using this package
"@vite-pwa/sveltekit": "0.2.1"
with a freshly created project using"@sveltejs/kit": "^1.5.0"
. Can anyone please let me know if these versions are incompatible?I have setup the basic config file following the documentation describes:
Below is the run time error: