Comments (11)
I'm beginning to suspect this might be some sort of peculiar UI bug or something similar. Aside from that check, I don't encounter any issues with PWA.
In addition to incognito mode, PWA testing tools also appear to be successful.
I've used the "Clear Site Data" function along with other methods to try and clear site data, but the start_url still isn't visible on either my Edge or Chrome browsers. However, I am ready to overlook this issue for now as it doesn't cause anything that I noticed.
Thank you for your responses, @userquin.
from nuxt.
Check if sw.js and manifest webmanifest are there, latter should be served with custom content type (https://github.com/vite-pwa/nuxt/blob/main/src/module.ts#L159), try enabling https://github.com/vite-pwa/nuxt/blob/main/src/types.ts#L47 in nuxt pwa options
from nuxt.
I am also having this issue with the lighthouse, I always get the "Does not register a service worker that controls page and start_url" error. I have deployed on Plesk and Vercel both same.
from nuxt.
@crunchwrap89 @tberk can you test adding client.registerWebManifestInRouteRules = true
in pwa options?
Check the local build using "NITRO_PRESET=vercel
in the build script: https://github.com/vite-pwa/nuxt/blob/main/package.json#L41
from nuxt.
- Build logs on vercel says: "Running "vercel build""
- Tried adding registerWebManifestInRouteRules: true to pwa config.
Still getting the same error. I also tested on dev, it detects start_url fine there, no problem.
pwa: {
registerType: 'autoUpdate',
registerWebManifestInRouteRules: true,
manifest: {
name: 'appname',
short_name: 'appname',
description: 'Some description.',
theme_color: '#fff',
icons: [
{
src: 'pwa/pwa-64x64.png',
sizes: '64x64',
type: 'image/png',
},
{
src: 'pwa/pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'pwa/pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any',
},
{
src: 'pwa/maskable-icon-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
workbox: {
navigateFallback: null,
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
},
client: {
installPrompt: true,
},
devOptions: {
enabled: true,
suppressWarnings: true,
navigateFallbackAllowlist: [/^\/$/],
type: 'module',
},
},
from nuxt.
@tberk can you share the url?
from nuxt.
Sure, I sent an email to you with the link.
btw, I noticed something, If I test in Incognito mode all checks seem fine, it shows start_url.
from nuxt.
Are you using nuxi generate
or nuxi build
? On my local when running nuxi build
, it is generating config.json
, but missing when using nuxi generate
(with repo playground, I've sent a DM to Daniel Roe):
from nuxt.
btw, I noticed something, If I test in Incognito mode all checks seem fine, it shows start_url.
This is weird, tested you app in private browsing and it is working, I'll check it in normal browsing and review the headers...
In the mean time, check out https://vite-pwa-org.netlify.app/deployment/, the sw is quite sensible...
from nuxt.
@tberk seems working, http headers properly configured by Nuxt, can you remove storage including (check Unregister service worker) service worker from Dev Tools > Application > Storage > Clear site data button?
from nuxt.
it is working properly also with lighthouse in normal browsing:
from nuxt.
Related Issues (20)
- refresh dosen`t work when I setup vite-pwa into my nuxt app HOT 1
- Specyfing different theme colors in manifest for dark mode HOT 1
- State gets lost with "soft" reset when using @vite-pwa/nuxt and nuxt-auth-utils HOT 5
- How to disable caching "_nuxt" folder due to "The server responded with a status of 429" after every update!!! HOT 4
- How to use it with useAsyncData? HOT 1
- Service worker keeps showing 'trying to install' when using `app.baseURL` under injectManifest strategy HOT 1
- Importing the virtual module in a unit test with Vitest HOT 2
- npm WARN when run "npm i @vite-pwa/nuxt -D" HOT 3
- [Feature Request]: dynamic manifest.json via nitro HOT 2
- pwa does not cache data in Nuxt 3 SSR HOT 3
- Firefox injectManifest not working HOT 1
- Manifest.webmanifest Failed to load resource: the server responded with a status of 401 HOT 3
- Problems on fresh app dev and prod HOT 3
- "@vite-pwa/nuxt": "^0.1.1" - manifest.webmanifest is 404 HOT 5
- module augmentation breaks others modules with unknown type
- Upgrade from v0.1.2 to v0.2.1 throws an error HOT 6
- Updating Nuxt to 3.8.1 breaks the globPatterns HOT 2
- Doesn't include public assets in nuxt v3.8.2. HOT 5
- Include appManifest in manifestEntries HOT 4
- `@nuxt/shema` module augmentation with vuetify entries!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.