Reactjs 无法在firebase中注册默认服务工作人员?
在reactjs中检索令牌时出错Reactjs 无法在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-m
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)
FirebaseError:消息传递:我们无法注册默认的服务工作者。未能为作用域()注册ServiceWorkerhttp://localhost:3000/firebase-云消息推送范围)和脚本('http://localhost:3000/firebase-消息传递sw.js'):ServiceWorker脚本评估失败(消息传递/服务工作者注册失败)。
在WindowController上。(http://localhost:3000/static/js/0.chunk.js:56513:33)
步调一致(http://localhost:3000/static/js/0.chunk.js:244050:17)
掷物(http://localhost:3000/static/js/0.chunk.js:243981:14)
至少被拒绝(http://localhost:3000/static/js/0.chunk.js:243944:32)