簡體   English   中英

每次我將 RtcEngine 導入到我的應用程序中時(從“react-native-agora”導入 RtcEngine;)我都會收到以下錯誤:

[英]Every time that I import RtcEngine into my application (import RtcEngine from 'react-native-agora';) I get the following error:

** TypeError: null 不是 object (evaluating 'AgoraRtcChannelModule.prefix') at node_modules\react-native\Libraries\LogBox\LogBox.js:148:8 in registerError at node_modules\react-native\Libraries\LogBox\LogBox。 js:59:8 in errorImpl at node_modules\react-native\Libraries\LogBox\LogBox.js:33:4 in console.error at node_modules\expo\build\environment\react-native-logs.fx.js:27: 4 錯誤在 node_modules\react-native\Libraries\Core\ExceptionsManager.js:104:6 在 node_modules\react-native\Libraries\Core\ExceptionsManager.js:171:19 在 handleException 在 node_modules\react-native\ Libraries\Core\setUpErrorHandling.js:24:6 在 node_modules\expo-error-recovery\build\ErrorRecovery.fx.js:12:21 在 ErrorUtils.setGlobalHandler$argument_0 在 node_modules@babel\runtime\node_modules\regenerator- runtime\runtime.js:62:36 在 tryCatch at node_modules@babel\runtime\node_modules\regenerator-runtime\runtime.js:288:29 in invoke at node_modules@babel\runtime\node_ modules\regenerator-runtime\runtime.js:62:36 在 tryCatch at node_modules@babel\runtime\node_modules\regenerator-runtime\runtime.js:152:27 in invoke at node_modules@babel\runtime\node_modules\regenerator-runtime\ runtime.js:162:18 在 Promise.resolve.then$argument_0 在 node_modules\react-native\node_modules\promise\setimmediate\core.js:37:13 在 tryCallOne 在 node_modules\react-native\node_modules\promise\setimmediate\ core.js:123:24 in setImmediate$argument_0 at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:130:14 in _callTimer at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:在 node_modules\react-native\Libraries\Core\Timers\JSTimers.js 中的 _callImmediatesPass 中為 181:14:在 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js 中的 callImmediates 中為 441:30:387:6 在 __callImmediates 中為 node_modules\ react-native\Libraries\BatchedBridge\MessageQueue.js:135:6 在 __guard$argument_0 在 node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:364:10 在 __guard at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:134:4 在 flushedQueue at [native code]:null in flushedQueue at [native code]:null invokeCallbackAndReturnFlushedQueue**

看起來庫沒有很好地鏈接,嘗試:首先 console.log 庫以查看它是否正確導入。 第二次嘗試做新的構建:

  • 干凈的項目
  • 刪除節點模塊
  • 檢查你的節點版本
  • 光盤 ios
  • 吊艙解體
  • 吊艙安裝
  • 有時刪除應用程序並重新構建它會產生魔力

暫無
暫無

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

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