shadowwalker / next-pwa

Zero config PWA plugin for Next.js, with workbox 🧰
MIT License
3.75k stars 311 forks source link

Bad Precaching response #389

Open felpsio opened 1 year ago

felpsio commented 1 year ago

Summary

I'm having the following error:

workbox-a4cc6d98.js:formatted:1001 Uncaught (in promise) bad-precaching-response: bad-precaching-response :: [{"url":"https://MY_APP-git-impapi-MY_APP.vercel.app/_next/static/chunks/239-e661f1bf2be373e0.js.map","status":404}]
    at Y.j (https://MY_APP-git-impapi-MY_APP.vercel.app/workbox-a4cc6d98.js:1:16774)
    at async Y.D (https://MY_APP-git-impapi-MY_APP.vercel.app/workbox-a4cc6d98.js:1:16372)
    at async Y.v (https://MY_APP-git-impapi-MY_APP.vercel.app/workbox-a4cc6d98.js:1:7597)

My next-pwa config:

pwa: {
    dest: 'public',
  }

Everything is hosted on vercel

Versions

"next": "12.0.9",
"next-pwa": "^5.5.4",

How To Reproduce

Steps to reproduce the behavior:

  1. Deploy a next.js project with the related configuration
  2. Access it in production

Expected Behaviors

It doesn't show any error when loading the page