-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workbox outputted to wrong directory when generating SPA #10
Comments
I'm having similar issue, however, mine is that it is generating wrong minifest list on the Before both client and server files are served at importScripts('/_nuxt/workbox.42554690.js');
workbox.precaching.precacheAndRoute([
{
'url': '/_nuxt/client/0890adc3636ba2ec1067.min.js',
'revision': '70d252cb7a0fd48aa2ddefeacc932c6a'
},
{
'url': '/_nuxt/client/1ce73f39061d056835ee.min.js',
'revision': 'a64c9bc40fb176bc22a127277065fb3e'
},
{
'url': '/_nuxt/client/5f597c405d20afa7bdeb.min.js',
'revision': '5d38cd8c2cb0929828b64584dc8f663c'
}
// ... That's one issue, second issue, is the |
Commenting to follow this issue. I've temporarily added a cleanup task to copy the |
Thanks for the bug report. We need to somehow find out current nuxt version has nuxt/nuxt#3758 changes or not! And then update globDirectory: path.resolve(this.options.buildDir, 'dist/client'), |
Is there a workaround for this? I tried to manually copy workbox file to _nuxt folder, but browser still can't find it, even after clearing cache. |
@pi0 could we get a patch release for this? Thanks |
2.4.0 is out. Sorry for delay. https://github.com/nuxt-community/pwa-module/releases/tag/v2.4.0 |
I am still getting errors with
Edit: Seemed to be a problem with my environment. |
same issue, what is your environment problem? |
|
I never had time to investigate the issue and stopped using the pwa module for now. |
'@nuxtjs/onesignal' must be before '@nuxtjs/pwa' in nuxt.config.js modules:[] section |
@manylov I have the same error. How did you solve it? |
Version
v2.3.0
Reproduction link
https://codesandbox.io/s/m3kkj8o588
Steps to reproduce
Use a basic Nuxt.js template. Add the
@nuxtjs/pwa
module. Runnuxt generate
.What is expected ?
The workbox file is generated in
dist/_nuxt
.What is actually happening?
The file is generated, but is instead placed in
.nuxt/dist
.Additional comments?
This appears to be the correct location for the file when using the build command. But it still uses this directory when generating a SPA resulting in the not being found by the service worker.
The text was updated successfully, but these errors were encountered: