Closed anonymouscatcher closed 2 years ago
I tried this but it doesn't work
pwa: {
disable: isDev,
dest: 'public',
reloadOnOnline: false,
runtimeCaching: defaultCache,
publicExcludes: ['!middleware*.json']
},
You have the same issue
Same here.
same here
same
try this example: https://github.com/shadowwalker/next-pwa/issues/288#issuecomment-955777098 it's working for me
@JuniYadi Thanks, that worked for me!
None of these fixes worked for me. I'm exporting statically. It would be really nice to be able to use this library.
None of these fixes worked for me. I'm exporting statically. It would be really nice to be able to use this library.
@L1lith try this
// next.config.js
const withPWA = require("next-pwa");
const runtimeCaching = require("next-pwa/cache");
module.exports = withPWA({
pwa: {
runtimeCaching,
buildExcludes: [/middleware-manifest\.json$/]
},
});
This worked for me. Ask me for any help.
None of these fixes worked for me. I'm exporting statically. It would be really nice to be able to use this library.
@L1lith try this
// next.config.js const withPWA = require("next-pwa"); const runtimeCaching = require("next-pwa/cache"); module.exports = withPWA({ pwa: { runtimeCaching, buildExcludes: [/middleware-manifest\.json$/] }, });
This worked for me. Ask me for any help.
I set that config, but when I run it I still can't get the worker to run successfully, now instead of the middleware-manifest.json related error it now says:
Could not load worker TypeError: e.split is not a function
NextJS 42
moduleUrl
$createWorkerFromOldConfig
l
createWorker
$startWorker
$onChangeMode
setMode
loadModule
setMode
componentDidMount
uo
ku
unstable_runWithPriority
Hl
wu
ou
Xl
unstable_runWithPriority
Hl
Xl
Yl
cu
Xu
hydrate
be
be
e
l
_invoke
S
j
a
C
C
fe
pe
e
l
_invoke
S
j
a8a28b14e-e0bcf10bae6d7a04.js:1:51965
I'm not sure if this is the same issue or not but I'm on Next-PWA@5.4.0 and Next@12.0.3
Edit: I don't know what changed but it's working now for whatever reason
Still appears to be an issue.
Should be working now with latest version and no buildExcludes config needed.
Thanks @shadowwalker! I'll check it out quicky.
Please Help, I also get this same issue and I try many way to solve it but nothing is happening
My problem is solved after update next-pwa from 5.4.1 to 5.5.4
Similar to https://github.com/shadowwalker/next-pwa/issues/177 but in next 12 It tries to load
_next/server/middleware-manifest.json
on client.