Giter Club home page Giter Club logo

Comments (4)

userquin avatar userquin commented on May 29, 2024

@devloperabhishek you should add the following packages (dev dependencies):

  • vite-plugin-pwa
  • workbox-window
  • workbox-build

from nuxt.

devloperabhishek avatar devloperabhishek commented on May 29, 2024

Now ERROR "Cannot start nuxt: Cannot find package 'vite-plugin-pwa'" resolved but,
Can't get solution (PWA icon / PWA install option)

after:

"devDependencies": {
"@vite-pwa/nuxt": "^0.0.4",
"nuxt": "^3.1.2",
"vite-plugin-pwa": "^0.14.2",
"workbox-build": "^6.5.4",
"workbox-window": "^6.5.4"
}

You can check
My code : https://stackblitz.com/edit/nuxt-starter-zevnog?file=nuxt.config.ts

from nuxt.

userquin avatar userquin commented on May 29, 2024

@devloperabhishek pwa nuxt module doesn't provide any icon/manifest generation, you must provide the icons, if you want to generate the icons you have 2 options:

We will progressively include improvements:

  • web manifest variants: locales and theme color (WIP)
  • icons and splash screen generation

About your repo on stackblizt, check this forked version https://stackblitz.com/edit/nuxt-starter-w4hbvn?file=nuxt.config.ts:

  • you must add <VitePwaManifest /> in app.vue or the default.vue layout: added in app.vue
  • you must add the icons to manifest option in pwa module configuration entry, unfortunately you can't upload png images to stakblizt in the free version (that's my case), and so, only using an svg
  • read the docs here: https://vite-pwa-org.netlify.app/frameworks/nuxt.html

You have an example here in playground, you can also check:

from nuxt.

devloperabhishek avatar devloperabhishek commented on May 29, 2024

Thanks @userquin It works for me.

from nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.