nuxt-community / pwa-template

PWA template for vue-cli based on the starter template
MIT License
133 stars 12 forks source link

WorkboxError on fresh install #16

Open ghost opened 6 years ago

ghost commented 6 years ago

Version

1.0.0

Reproduction link

https://github.com/nuxt-community/pwa-template

Steps to reproduce

  1. Install:
    $ vue init nuxt-community/pwa-template my-project  
    $ cd my-project                     
    # install dependencies
    $ npm install # Or yarn install
    $ npm run build
    $ npm start
  2. Navigate to localhost:3000

What is expected ?

Error-less PWA application.

What is actually happening?

Error in browser console when entering /:

workbox.3de3418b.js:158 Uncaught (in promise) WorkboxError: An error was thrown by workbox with error code: ;'request-not-cached' with extras: '{"url":"http://localhost:3000/_nuxt/layouts_default.061f990e7d3f96dc329e.js","error":{}}'
    at http://localhost:3000/_nuxt/workbox.3de3418b.js:160:1358
    at Generator.throw (<anonymous>)
    at step (http://localhost:3000/_nuxt/workbox.3de3418b.js:83:30)
    at http://localhost:3000/_nuxt/workbox.3de3418b.js:96:13
WorkboxError @ workbox.3de3418b.js:158
(anonymous) @ workbox.3de3418b.js:160
step @ workbox.3de3418b.js:83
(anonymous) @ workbox.3de3418b.js:96
This bug report is available on Nuxt.js community (#c13)