When resolving in an angular2 application, the following error appears. I am using the latest version of angular cli.
The script has an unsupported MIME type ('text/html').
https:
main.b757377….bundle.js:30496 permission An error occurred while retrieving token. V {code: "messaging/failed-serviceworker-registration", message: "Messaging: We are unable to register the default s…). (messaging/failed-serviceworker-registration).", browserErrorMessage: "Failed to register a ServiceWorker: The script has an unsupported MIME type ('text/html').", stack: "FirebaseError: Messaging: We are unable to registe…in/main.b7573773d12a16423658.bundle.js:1572:3907)"}
source
share