Open eeerrrttty opened 6 years ago
It's returning to me the following error in console:
Here is my configuration:
new SWPrecacheWebpackPlugin({ cacheId: 'teste', filename: 'service-worker.js', importScripts: ['./firebase-messaging-sw.js'], staticFileGlobs: ['dist/**/*.*'], minify: true, stripPrefix: 'dist/' })
Here is my firebase-messaging-sw.js:
import * as firebase from 'firebase' require('firebase/firestore') firebase.initializeApp({config}) const messaging = firebase.messaging()
Error during service worker registration:
TypeError: Failed to register a ServiceWorker: ServiceWorker script evaluation failed
Me to, how to add?
same problem, any solution?
It's returning to me the following error in console:
Here is my configuration:
Here is my firebase-messaging-sw.js:
Error during service worker registration: