Module `util` does not exist in React Native
See original GitHub issueI’m trying to build my react-native app (RN: 0.56.0) and I’m getting the following error:
error: bundling failed: Error: Unable to resolve module util from ../node_modules/luxon/build/cjs-browser/luxon.js: Module util does not exist in the Haste module map or in these directories: /../../../node_modules
Do I have to explicitly add util
as a package?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (10 by maintainers)
Top Results From Across the Web
react native unable to resolve module util - Stack Overflow
The solution is to run this command and it will be fixed. npm install util.
Read more >Error: Unable to resolve module `util` – Split Help Center
Running bundle using React Native and Javascript SDK causes an error. Bundling failed: Error: Unable to resolve module `util`.
Read more >Native Modules
Native Modules. Sometimes an app needs access to a platform API that React Native doesn't have a corresponding module for yet.
Read more >Unable to resolve module - Google Groups
Hi,. This looks more an issue related to your react-native environment than with JsSIP. The error says that the builtin Node.js 'util' module...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
To fix the error, you need to install the package that is absent in your project directory – npm install package-name or yarn...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d prefer to remove the the dependency then. It’s not worth causing so much pain.
I removed
inspect
altogether in 55ac17e6c0ed936bb098d77f933a5afbe24c787b, will release it soon