Comments (8)
Error like this
ERROR Cannot restart nuxt: Cannot destructure property 'nuxt' of 'this' as it is undefined. 13:50:50
at pwa (node_modules/@nuxtjs/pwa/dist/pwa.js:733:10)
at installModule (node_modules/@nuxt/kit/dist/index.mjs:416:9)
at async initNuxt (node_modules/nuxt/dist/index.mjs:1825:7)
at async load (node_modules/nuxi/dist/chunks/dev.mjs:6779:9)
at async _applyPromised (node_modules/nuxi/dist/chunks/dev.mjs:6713:10)
I'm also having same issue and was hoping to see any result.
from pwa-module.
There's also Framework-agnostic PWA plugin by vite-pwa which can be integrated with Nuxt, Vanilla JavaScript, TypeScript or any framework in general.
Installation: https://vite-pwa-org.netlify.app/frameworks/nuxt.html
Examples: https://vite-pwa-org.netlify.app/examples/nuxt.html
from pwa-module.
have you tried to set ssr to false? since PWA should be SPA, I believe.
from pwa-module.
@mitraecp I've scoured from what's currently available at this time, others found a solution for a working but unofficial PWA module here created by Kevin - and unfortunately, this is the only way to get a PWA up and running until Nuxt 3 has released a built-in PWA module.
From what I can gather, and from other issues pertaining to this repo, I believe this is going to be a native feature from Nuxt 3 and will be migrating all the features from this repo, however it's still being worked on and not suitable for production yet.
from pwa-module.
I'm also interested in knowing if this module can work with Nuxt 3, so far I only see solutions or topics related to NuxtJS when searching online
from pwa-module.
This module is not supported
from pwa-module.
@suruaku Is this stable?
from pwa-module.
Yes, the vite-pwa itself has been around for a few years. The Nuxt3 integration is relatively fresh (like Nuxt3 itself) and is done by Nuxt core team member Daniel.
But especially now, be thoughtful when updating any Nuxt3 plugins in general. Test and read changelogs. Things are changing quite rapidly.
https://github.com/vite-pwa/nuxt
from pwa-module.
Related Issues (20)
- How to test the installation and download of local localhost:3000 with chrome brower? HOT 2
- Error: ENOENT: no such file or directory, open '/tmp/build_c0584bd6/static/sw.js'
- Can't detect new builds locally HOT 3
- Can I set related_applications and prefer_related_applications to the manifest? HOT 1
- Is there way to replace the pwa icon that has already been added before?
- runtimeCaching urlPattern and pagesURLPattern only accept strings HOT 1
- Blank page when opening the application as PWA on mobile HOT 1
- Is this project dead? HOT 1
- Any way to use custom urls prefix for icons or `build.publicPath`?
- [h3] [unhandled] next is not a function (Nuxt/Bridge - Nitro 6.0.0) HOT 9
- How to add required properties HOT 2
- PWA doesn't work offline
- how to generate multiple manifest files?
- If start_url exists in the manifest.json, precaching will always add start_url path, can it be changed to configurable?
- short_name uses package.json name by default instead of manifest name
- How can I cache post requests?
- Change formatting for h3 errors, like [nuxt] [request error] [fatal] [404]
- 301 issues with special characters
- why does not PWA update when a new version of the website is available? HOT 1
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 pwa-module.