昨天一切都运作得很完美,今天早上我注意到Chrome引入了一个新的界面,之后我检查了一下Chrome版本,它现在已经更新到v69。目前为止还好。 然后我启动了与Firebase连接的服务器。但是我开始收到以下信息:
09:46:30.598 index.esm.js?76ac:2069 Uncaught FirebaseError {code: "messaging/unsupported-browser", message: "Messaging: This browser doesn't support the API's …he firebase SDK. (messaging/unsupported-browser).", stack: "FirebaseError: Messaging: This browser doesn't sup….0.0.0:8000/index.js?d00bc69e0c69f561d4af:2672:1)"}code: "messaging/unsupported-browser"message: "Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."stack: "FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser).
at Object.factoryMethod [as messaging] (webpack-internal:///311:2077:32)
at FirebaseAppImpl._getService (webpack-internal:///30:134:66)
at FirebaseAppImpl.(anonymous function) [as messaging] (webpack-internal:///30:323:31)
at Object.serviceNamespace [as messaging] (webpack-internal:///30:308:32)
at eval (webpack-internal:///66:51:36)
at Object.<anonymous> (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:1240:1)
at __webpack_require__ (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:708:30)
at fn (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:113:20)
at eval (webpack-internal:///286:55:11)
at Object.<anonymous> (http://0.0.0.0:8000/index.js?d00bc69e0c69f561d4af:2672:1)"__proto__: Error
长话短说:消息传递:“此浏览器不支持使用Firebase SDK所需的API”。降级到Chrome 68是一个解决方案,但是否有更好的想法?
编辑:
系统信息:Pop!_OS 18.04 LTS Linux(64位)
Chrome版本:69.0.3497.81(官方构建)(64位)
Node版本:v10.9.0
编辑:
服务器在部署到生产环境和Firefox时工作正常。
firebase serve
。 - blaytenshi