我最近升级了Firebase Emulator,这样我就可以使用新的身份验证功能了,一切正常,运行firebase emulators:start后,它在控制台中显示了以下日志:
firebase emulators:start
i emulators: Starting emulators: auth, functions, firestore, hosting
! functions: The following emulators are not running, calls to these services from the Functions emulator will affect production: database, pubsub
+ functions: Using node@12 from host.
i firestore: Firestore Emulator logging to firestore-debug.log
i hosting: Serving hosting files from: dist/firetest
+ hosting: Local server: http://localhost:5000
i ui: Emulator UI logging to ui-debug.log
i functions: Watching "C:\wamp64\www\WasteMart\firetest\functions" for Cloud Functions...
┌─────────────────────────────────────────────────────────────┐
│ ✔ All emulators ready! It is now safe to connect your app. │
│ i View Emulator UI at http://localhost:4000 │
└─────────────────────────────────────────────────────────────┘
┌────────────────┬────────────────┬─────────────────────────────────┐
│ Emulator │ Host:Port │ View in Emulator UI │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Authentication │ localhost:9099 │ http://localhost:4000/auth │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Functions │ localhost:5001 │ http://localhost:4000/functions │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Firestore │ localhost:8080 │ http://localhost:4000/firestore │
├────────────────┼────────────────┼─────────────────────────────────┤
│ Hosting │ localhost:5000 │ n/a │
└────────────────┴────────────────┴─────────────────────────────────┘
Emulator Hub running at localhost:4400
Other reserved ports: 4500但是,当我在http://localhost:4000/上打开仿真器集线器时,什么也没有加载。
我在Chrome中打开了DevTools,它显示了这两个控制台错误:
Uncaught SyntaxError: Unexpected token '<'
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
DevTools failed to load SourceMap: Could not parse content for http://localhost:4000/static/js/10.e545a6ce.chunk.js.map: Unexpected end of JSON input我不确定哪里出了问题,或者我应该尝试修复这个问题,我试图找到一种卸载模拟器并重新安装它们的方法,但我没有运气。
发布于 2020-12-22 05:26:33
现在可以工作了!?,我刚刚将firebase-tools从9.01更新到9.10,并且下载了仿真器文件ui-v1.4.1。
如果错误仍然存在,请删除firebase-tools,然后重新安装它们
https://stackoverflow.com/questions/65352466
复制相似问题