簡體   English   中英

在本地運行時出現 firebase 模擬器 UI 問題

[英]Issue with firebase emulator UI when run locally

我是 Google Firestore 的新手,想為本地開發設置一個模擬器。 所有安裝成功。 但是,當我想使用firebase emulators:start命令啟動模擬器時,啟動 UI 不成功。 它在ui-debug.log中給出以下錯誤:

Error: Cannot find module '<my path>/--dns-result-order=ipv4first'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function._resolveFilename (pkg/prelude/bootstrap.js:1955:46)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.runMain (pkg/prelude/bootstrap.js:1983:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

當我在沒有 UI 的情況下運行模擬器時,此錯誤消失了。 誰能告訴我這個問題可能是什么?

我的節點版本是:v16.15.0 我的 npm 版本是:8.10.0 我的 firebase 版本是:11.0.0

謝謝。

所以最終,這似乎是一個錯誤,當我將 firebase 從 11 降級到 10.9 時,一切都開始起作用了。我從這篇文章中得到了幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM