Skip to content

ServiceWorker doesn't work #1271

@mysticatea

Description

@mysticatea
  • I confirm that this is a issue rather than a question.

Bug report

Version

  • vuepress 1.0.0-alpha.37
  • @vuepress/plugin-pwa 1.0.0-alpha.0

Steps to reproduce

  1. Open https://mysticatea.github.io/eslint-plugin-eslint-comments/
  2. Open devtools' console
  3. You can find the following error message.
The path of the provided scope ('/') is not under the max scope allowed ('/eslint-plugin-eslint-comments/'). Adjust the scope, move the Service Worker script, or use the Service-Worker-Allowed HTTP header to allow the scope.

What is expected?

  • The site uses service worker.

What is actually happening?

  • The site fails to register service worker.

Other relevant information

  • Your OS: Travis CI's Linux container (Ubuntu 14.04.5 LTS)
  • Node.js version: 10.15.1
  • Browser version: Chrome 73.0.3683.27(Official Build)beta
  • Is this a global or local install? : local
  • Which package manager did you use for the install? : yarn

I guess that registrationOptions is lacking on @vuepress/plugin-pwa/lib/enhanceAppFile.js.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions