question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module `util` does not exist in React Native

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
icambroncommented, Aug 16, 2018

I’d prefer to remove the the dependency then. It’s not worth causing so much pain.

1reaction
icambroncommented, Sep 24, 2018

I removed inspect altogether in 55ac17e6c0ed936bb098d77f933a5afbe24c787b, will release it soon

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found