Skip to content

Workbox.core.clientsClaim is not a function #7113

@claudioviola

Description

@claudioviola

Hello guys!
I activate the serviceWorker.register() in my project.
I'm running the build and then I run serve -s build

When I use chrome to connect to localhost:5000 I see this error in the console and my service worker is not registered and in application tab I see that service worker in not installed.

workbox.core.clientsClaim is not a function at service-worker.js:26

This is my config project

"dependencies": {
    "@ionic/react": "^0.0.5",
    "axios": "^0.18.0",
    "dotenv": "^6.2.0",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "react-router": "^5.0.0",
    "react-router-dom": "^5.0.0",
    "react-scripts": "3.0.1",
    "use-react-router": "^1.0.5"
  },

yarn 1.7.0
npm 6.1.0

I don't know if it is a bug or just my configuration is failing...

I printed in console the workbobox.core object
Schermata 2019-05-26 alle 11 50 14

Thanks for support

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions