Manifest and SW not working properly
See original GitHub issueHello @kevinmarrec, I have a new issue with the PWA module (I promise it’s not against you 😅). It’s quite similar to this issue. When starting a fresh nuxt project and building the app, I don’t have the manifest.[hash].json
created under the .output/public
directory.
I created this public repository with reproduction
My config :
------------------------------
- Operating System: `Darwin`
- Node Version: `v16.16.0`
- Nuxt Version: `3.0.0-rc.6`
- Package Manager: `npm@8.11.0`
- Builder: `vite`
- User Config: `modules`, `pwa`
- Runtime Modules: `@kevinmarrec/nuxt-pwa@0.4.2`
- Build Modules: `-`
------------------------------
nuxt.config.ts
import { defineNuxtConfig } from 'nuxt'
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
modules: [
'@kevinmarrec/nuxt-pwa'
],
pwa: {
workbox: {
enabled: true
},
icon: {
source: './assets/pwa-512x512.png'
},
meta: {
/* meta options */
},
manifest: {
name: 'A name',
short_name: 'Short Name',
description: 'A random description',
theme_color: '#ffffff',
background_color: '#ffffff',
display: 'standalone',
lang: 'fr'
}
},
})
screen of the output directory:
Error with Lighthouse test:
Checking source in chrome :
Service worker in the head of my HTML:
Thank you in advance for your help ! 🙏
Issue Analytics
- State:
- Created a year ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Service worker does not successfully serve the manifest's ...
At the moment I'm caching the index.html page and I've set the start_url to index.html and I still get this error. I can...
Read more >Site cannot be installed: no matching service worker detected
The sw.js file is located at project root, taking start_url as reference. ... for my work well updating the library ...
Read more >Add a web app manifest
In consequence, developers should not repeat the application name in the <title> when the app is running in standalone mode. icons #. When...
Read more >Web app manifests - MDN Web Docs - Mozilla
Chrome Edge
display Full support. Chrome39. Toggle history Full support. Edge7...
display_override. Experimental Full support. Chrome89. Toggle history Full support. Edge8...
icons Full support. Chrome39. Toggle...
Read more >Web Application Manifest - W3C
They've found that the SVG file looks too blurry at small sizes, even on high-density screens. To deal with this problem, the developer...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this issue as it does not seem reproducible.
@BenjaminOddou For your last comment, let’s follow #32 which should be fixed using last edge version of Nuxt or wait for next release candidate (RC.9)
Could it be that it does not work when not using SSR or SSG?