Marc
Marc

Reputation: 297

React Native Debugger Error - Cannot GET /debugger-ui/

React Native Debugger is automatically loading to http://localhost:8081/debugger-ui/.

However, I keep getting the following error -

Cannot GET /debugger-ui/

Upvotes: 9

Views: 8291

Answers (2)

P.Lorand
P.Lorand

Reputation: 1432

For me it was only:

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

Upvotes: 3

Maurício Araldi
Maurício Araldi

Reputation: 389

Apparently they have left a bug in the code. For it to work right now, you will have to change the react-native-community module on your own.

Go to the file

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

and, in the line 97

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

remove the 'util' param, changing it to

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

Upvotes: 3

Related Questions