Comments (4)
@devloperabhishek you should add the following packages (dev dependencies):
- vite-plugin-pwa
- workbox-window
- workbox-build
from nuxt.
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.
@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:
- use https://realfavicongenerator.net/, you only need an svg or a png
- use this another pwa module, will generate all icons for you: https://github.com/kevinmarrec/nuxt-pwa-module
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 />
inapp.vue
or thedefault.vue
layout: added inapp.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:
- vitesse-nuxt3 (WIP)
- Elk repo: Elk
from nuxt.
Thanks @userquin It works for me.
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
- When using PWA in development mode, it's not possible to visit routes directly HOT 5
- How To? Custom service worker! HOT 4
- Progressive Web Application Dynamic Route Problem with vite-pwa-nuxt in nuxt3 HOT 13
- Workbox Runtime Cache Not Working. HOT 8
- 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.