Open matteomontipo opened 2 years ago
I'm not sure if this is a next-pwa issue. I experienced it too after trying to fresh install my app (by deleting .next, cache and things that next-pwa had added). I think ever since I upgraded to next 12.2.3+ there is an issue in config.js. this is just for reference https://github.com/vercel/next.js/issues/39161
I'm seeing this as well with 5.6.0 and nextjs 13.1.1.
Seems somewhat intermittent, because at one point I had it all working, then the SW.js file started returning 404.
EDIT My issue was related to Turborepo: https://github.com/shadowwalker/next-pwa/issues/449
UPDATE: it works fine using next-pwa 5.5.4
Summary
What can I help with? Please keep this clear and concise.
Versions
next-pwa
: ^5.5.5next
: 12.2.5How To Reproduce
Steps to reproduce the behavior:
Additional Context
I have my icons inside /public/images/icons/ (correctly linked in manifest, _app.js, everywhere) but the icons are not directly inside /public/ if that's an issue, idk
My next.config.js file:
jsconfig.json file:
@/types/alltypes.d.ts file:
/public/manifest.json file:
_app.js:
inside my .gitignore file: