簡體   English   中英

反應本機調試器錯誤 - 無法獲取 /debugger-ui/

[英]React Native Debugger Error - Cannot GET /debugger-ui/

React Native Debugger 會自動加載到http://localhost:8081/debugger-ui/

但是,我不斷收到以下錯誤 -

Cannot GET /debugger-ui/

顯然他們在代碼中留下了一個錯誤。 要讓它立即工作,您必須自己更改 react-native-community 模塊。

轉到文件

/node_modules/react-native-community/cli/build/commands/server/middleware/MiddlewareManager.js

並且,在第 97 行

const debuggerUIFolder = _path().default.join(__dirname, '..', 'util', 'debugger-ui');

刪除“util”參數,將其更改為

const debuggerUIFolder = _path().default.join(__dirname, '..', 'debugger-ui');

對我來說只是:

  1. rm -rf node_modules && npm i
  2. npm run start -- -- reset-cache
  3. cd ios && rm -rf Pods && pod install

暫無
暫無

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

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