Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

react-native

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

None of these files exist:

 * debugger-ui/debuggerWorker.cff11639.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
  * debugger-ui/debuggerWorker.cff11639.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
    at ModuleResolver.resolveDependency (/Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:163:15)
    at ResolutionRequest.resolveDependency (/Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:52:18)
    at DependencyGraph.resolveDependency (/Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/node-haste/DependencyGraph.js:287:16)
    at /Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/lib/transformHelpers.js:267:42
    at Server.<anonymous> (/Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/Server.js:841:41)
    at Generator.next (<anonymous>)
    at asyncGeneratorStep (/Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/Server.js:99:24)
    at _next (/Users/silent/Documents/CompanyTest/ConnectPlus/node_modules/metro/src/Server.js:119:9)
like image 455
Deep Avatar asked Jun 09 '20 13:06

Deep


2 Answers

I'm also have the same issue, the issue is because we use chrome debugger. When I go through https://reactnative.dev/docs/debugging we have to install the 'react-devtools' package. After some time browsing internet. I found that its difficult to use chrome desbugger. So I stop the debug and clear the cahce

npx react-native start --reset-cache

after that I restart back the apps. And the error gone.

like image 89
Asyraf Roszaki Avatar answered Oct 16 '22 05:10

Asyraf Roszaki


Stop debugging from the simulator. Hard reload debugger tab in chrome by alt + control + click on reload button and choose Empty cache and hard reload then restart the debugger from simulator.

like image 30
mcnk Avatar answered Oct 16 '22 05:10

mcnk