Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4.js
See original GitHub issueReport a bug App crash when i turn debug on mode
versions
"react-native": "0.66.0",
"metro-react-native-babel-preset": "0.66.2",
What is the current behavior? The app work fine but it crash when i turn it to debug mode
How can i reproduce the error?
After a yarn dev
and yarn android
when i turn it to debug mode it crash and i can see only the error below
You can test it by your self from here install start-ui native
npx create-start-ui --native myApp
That will scaffold a new folder with the latest version of 🚀 Start UI <small>[native]</small> 🎉
Then just go to the created folder cd myApp
and follow the Installation Guide.
What is the error I’m getting?
After a yarn dev
and yarn android
when i turn it to debug mode it crash and i can see only this error
Error: Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4.js from /home/omar/Documents/Projects/JawDay-mobile/.:
None of these files exist:
* debugger-ui/debuggerWorker.aca173c4.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/debuggerWorker.aca173c4.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:107:15)
at DependencyGraph.resolveDependency (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/node-haste/DependencyGraph.js:288:43)
at /home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/lib/transformHelpers.js:129:24
at Server._resolveRelativePath (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/Server.js:1072:12)
at async Server.requestProcessor [as _processSourceMapRequest] (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/Server.js:428:37)
at async Server._processRequest (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/Server.js:389:7)
Error: Unable to resolve module ./debugger-ui/debuggerWorker.aca173c4.js from /home/omar/Documents/Projects/JawDay-mobile/.:
None of these files exist:
* debugger-ui/debuggerWorker.aca173c4.js(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
* debugger-ui/debuggerWorker.aca173c4.js/index(.native|.native.js|.js|.native.json|.json|.native.ts|.ts|.native.tsx|.tsx)
at ModuleResolver.resolveDependency (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:107:15)
at DependencyGraph.resolveDependency (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/node-haste/DependencyGraph.js:288:43)
at /home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/lib/transformHelpers.js:129:24
at Server._resolveRelativePath (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/Server.js:1072:12)
at async Server.requestProcessor [as _processSourceMapRequest] (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/Server.js:428:37)
at async Server._processRequest (/home/omar/Documents/Projects/JawDay-mobile/node_modules/metro/src/Server.js:389:7)
this error guide me to metro modules so this is i put the issue here
what is metro config in the project
in file metro.config.js
/**
* Metro configuration for React Native
* https://github.com/facebook/react-native
*
*/
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false, // false because of hermes issue https://github.com/storybookjs/react-native/issues/152
},
}),
},
};
Can someone find solution for this probleme i tested all solutions here but it doesnt work
Issue Analytics
- State:
- Created 2 years ago
- Reactions:26
- Comments:38 (2 by maintainers)
Top GitHub Comments
Deleting the Cache from Google Chrome fixed this issue for me.
Settings -> More Tools -> Clear browsing data
Make sure to select “All time”
I am building an app with react-native (without expo) and it works both on simulator and on actual iPhone. But when I go in debug mode (Shake and Debug with Chrome) on simulator, the screens turns black. In my opinion the app is still running, because I get the same error messages as before but I can’t do anything. All of the dependencies are up to date and reset of entire project doesn’t help either. Does anyone experience the same issues and is there any fix?