Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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/

like image 306
Marc Avatar asked Mar 12 '19 21:03

Marc


2 Answers

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');

like image 73
Maurício Araldi Avatar answered Oct 23 '22 23:10

Maurício Araldi


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
like image 34
P.Lorand Avatar answered Oct 23 '22 23:10

P.Lorand