question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Manifest and SW not working properly

See original GitHub issue

Hello @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/publicdirectory.


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: Output Dir

Error with Lighthouse test: Lighthouse Test

Checking source in chrome : Source Chrome

Service worker in the head of my HTML: Script tag in Head of HTML

Thank you in advance for your help ! 🙏

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kevinmarreccommented, Aug 30, 2022

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)

1reaction
manniLcommented, Aug 8, 2022

Could it be that it does not work when not using SSR or SSG?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found