Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 无法在firebase中注册默认服务工作人员?_Reactjs - Fatal编程技术网

Reactjs 无法在firebase中注册默认服务工作人员?

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

在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)
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)