簡體   English   中英

加載 Map 視圖時 React Native Firebase 拋出錯誤

[英]React Native Firebase Throwing Error when Map view is loaded

最近,在將 ios 應用程序添加到 firebase 項目后,我開始在控制台中收到此警告。 刪除並重新創建所有應用程序仍未解決 map 加載問題

[未處理的 promise 拒絕:錯誤:獲取令牌失敗:請設置您的項目 ID。 A valid Firebase Project ID is required to communicate with Firebase server APIs: It identifies your application with Firebase.Please refer to https://firebase.google.com/support/privacy/init-options.] at \node_modules\react-native \Libraries\BatchedBridge\NativeModules.js:104:50 在 promiseMethodWrapper 在 \node_modules\expo-modules-core\build\NativeModulesProxy.native.js:27:27 在 moduleName.methodInfo.name 在 \node_modules\css-select\lib \compile.js:5:0 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:86:13 在 tryCatch 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:66:31 在 \node_modules@ babel\runtime\helpers\regeneratorRuntime.js:86:13 在 tryCatch at \node_modules@babel\runtime\helpers\regeneratorRuntime.js:124:27 在調用 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:148: 16 在 PromiseImpl$argument_0 在 \node_modules\promise\setimmed iate\core.js:45:6 in tryCallTwo at \node_modules\promise\setimediate\core.js:200:22 in doResolve at \node_modules\promise\setimediate\core.js:66:11 in Promise at \node_modules@babel \runtime\helpers\regeneratorRuntime.js:147:15 in callInvokeWithMethodAndArg at \node_modules@babel\runtime\helpers\regeneratorRuntime.js:152:154 in _invoke at \node_modules@babel\runtime\helpers\regeneratorRuntime.js:238:57在 export.async 在 \node_modules\css-select\node_modules\domutils\lib\helpers.js:128:3 在 exports.uniqueSort 在 \node_modules\css-select\lib\compile.js:118:47 在 compileRules 在 \ node_modules@babel\runtime\helpers\regeneratorRuntime.js:86:13 在 tryCatch 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:66:31 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:86 :13 在 tryCatch 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:124:27 在調用 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:148:16 在 PromiseImpl$a rgument_0 在 \node_modules\promise\setimmediate\core.js:45:6 在 tryCallTwo 在 \node_modules\promise\setimmediate\core.js:200:22 在 doResolve 在 \node_modules\promise\setimmediate\core.js:66:11在 Promise 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:147:15 在 callInvokeWithMethodAndArg 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:152:154 在 _invoke 在 \node_modules@babel\runtime\helpers\ regeneratorRuntime.js:238:57 在 exports.async 在 \node_modules\css-select\lib\compile.js:103:17 在 token.map$argument_0 在 \node_modules\expo-notifications\build\scheduleNotificationAsync.js:182: 12 在 components.forEach$argument_0 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:86:13 在 tryCatch 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:66:31 在 \node_modules@babel\ runtime\helpers\regeneratorRuntime.js:86:13 在 tryCatch 在 \node_modules@babel\runtime\helpers\regeneratorRuntime.js:124:27 在調用 \node_module s@babel\runtime\helpers\regeneratorRuntime.js:130:16 in PromiseImpl.resolve.then$argument_0 at \node_modules\promise\setimmediate\core.js:37:13 in tryCallOne at \node_modules\promise\setimmediate\core。 js:123:24 in setImmediate$argument_0 at \node_modules\react-native\Libraries\Core\Timers\JSTimers.js:123:14 in _callTimer at \node_modules\react-native\Libraries\Core\Timers\JSTimers.js: 177:14 in _callImmediatesPass at \node_modules\react-native\Libraries\Core\Timers\JSTimers.js:437:30 in callImmedates at \node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:388:6 in __callImmedates at \node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:132:6 in __guard$argument_0 at \node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:365:10 in __guard at \node_modules\react-native \Libraries\BatchedBridge\MessageQueue.js:131:4 在flushedQueue

如果您有 promise 句柄,請首先使用 async await 或嘗試在調用數據的代碼中使用 catch。 然后使用控制台跟蹤錯誤。 如果在此之后仍然出現錯誤,請讓我知道我會幫助您修復錯誤。 謝謝

暫無
暫無

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

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