bobber205
bobber205

Reputation: 13372

"Unable to resolve module" debuggerWorker errors in recent react-native releases

I keep my project(s) relatively up to date with the latest RN releases. This error seems to be coming up more and more lately.

Error: Unable to resolve module `./debugger-ui/debuggerWorker.d9da4ed7` from ``:

None of these files exist:
  * debugger-ui/debuggerWorker.d9da4ed7(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)

Really makes it hard when trying to debug issues and a debugger statement does noting and errors are not reported to the browser tab where the console output goes.

I've already tried wiping node_modules. Is this a known issue with a concrete fix available?

Upvotes: 28

Views: 23386

Answers (4)

ric
ric

Reputation: 72

Happens to me recently using expo and android. The solution was to clear all Expo Go data:

  • Long press the Expo go icon
  • Then select App info
  • At the bottom of the screen, press Clear Data
  • And press Clear all data
  • Relaunch expo go and the react native app

Upvotes: 0

drice304
drice304

Reputation: 96

I closed the app (pressing home twice and swiping up), then started it again from the simulator and it worked.

Upvotes: 0

mmafrar
mmafrar

Reputation: 371

I had to come across a similar issue after updating @react-native-community/cli-debugger-ui to 4.2.1. Tried out several methods, nothing worked. Reverting @react-native-community/cli-debugger-ui back to 3.0.0 resolved the issue for me.

Upvotes: 4

ebaynaud
ebaynaud

Reputation: 788

Got stuck with this exact issue for hours. Just found that this occurs only on device where app is already installed with debug mode enabled.

I fixed it by:

  • uninstalling manually app from device (cmd+H to display simulator home) then long click on app icon and click on cross to delete app => this forces disabling debug mode,
  • then run app again from xcode.

Enabling debug mode after that works normally.

Upvotes: 34

Related Questions