-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nuxt3 + PWA warnings in terminal #127
Comments
I got the same error |
About workbox warnings, check https://vite-pwa-org.netlify.app/guide/faq.html#suppress-workbox-build-warnings-in-dev About router warnings, try update to latest nuxt 3.11.2 |
Same here. PWA v0.20.0 WARN warnings |
Check if adding this will fix your issue: pwa: { |
That doesnt change anything. |
The issue was gone for me when i set it up like this.
... And the service worker "sw.ts" in the public folder like this:
Note that i use pwaAssets. So you might need to remove that line or install it if u need. |
Saw this solution on another issue forget where, helped me with a similar but different issue
|
I need to check these experimental flags in Nuxt (maybe we need to change the way we detect these 2 flags => maybe in latest Nuxt version not experimental): https://vite-pwa-org.netlify.app/frameworks/nuxt.html#payload-extraction |
Not sure what this does maybe also relevant @userquin |
I tried all the suggestions here but only managed to get rid of the workbox warning about glob (which was completely valid) But the router warnings seem to come from something trying to make requests to those urls, which apparently don't exist This really pollutes the logs especially when you have trailing slash redirects and i18n redirects Here is an example of just one request to the home page, now imagine trying to find logs in this web:dev: WARN [Vue Router warn]: No match found for location with path "/sw.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/sw.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/hu/sw.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/sw.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/sw.js"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/workbox-c4af092c.js"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/workbox-c4af092c.js"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/workbox-c4af092c.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/workbox-c4af092c.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/workbox-c4af092c.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/hu/workbox-c4af092c.js/"
web:dev:
web:dev:
web:dev: WARN [Vue Router warn]: No match found for location with path "/workbox-c4af092c.js/" |
I went into the application panel and unregistered the service worker there No more requests and logs, apparently it got registered when I visited nuxt in built mode served on node locally and the service worker module is not enabled in serve mode (maybe it should serve an unregistration worker in serve mode instead) |
@Tofandel
|
Is it normal that after PWA implementation in terminal I see warnings like that?
The text was updated successfully, but these errors were encountered: