не удается зарегистрировать service worker по умолчанию в firebase?

#reactjs

#reactjs

Вопрос:

Произошла ошибка при получении токена в reactjs.

 FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('http://localhost:3000/firebase-cloud-messaging-push-scope') with script ('http://localhost:3000/firebase-messaging-sw.js'): ServiceWorker script evaluation failed (messaging/failed-service-worker-registration).
at WindowController.<anonymous> (http://localhost:3000/static/js/0.chunk.js:56513:33)
at step (http://localhost:3000/static/js/0.chunk.js:244050:17)
at Object.throw (http://localhost:3000/static/js/0.chunk.js:243981:14)
at rejected (http://localhost:3000/static/js/0.chunk.js:243944:32)