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.

bundling failed: Error: Unable to resolve module `_wrapObjectFreezeAndFriends` from ` /node_modules/react-native/Libraries/Core/polyfillES6Collections.js`: Module `_wrapObjectFreezeAndFriends` does not exist in the Haste module map

See original GitHub issue

i tried to do all these step and nothing worked

  1. Clear watchman watches: watchman watch-del-all.
  2. Delete the node_modules folder: rm -rf node_modules && npm install.
  3. Reset Metro Bundler cache: rm -rf /tmp/metro-bundler-cache-* or npm start -- --reset-cache.
  4. Remove haste cache: rm -rf /tmp/haste-map-react-native-packager-*.

React Native version: info React Native Environment Info: System: OS: macOS 10.14.3 CPU: (8) x64 Intel® Core™ i7-4770HQ CPU @ 2.20GHz Memory: 46.55 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 9.5.0 - ~/.nvm/versions/node/v9.5.0/bin/node Yarn: 1.6.0 - ~/.nvm/versions/node/v9.5.0/bin/yarn npm: 4.6.1 - ~/.nvm/versions/node/v9.5.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: Android SDK: API Levels: 21, 22, 23, 24, 25, 26, 27, 28 Build Tools: 23.0.0, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3 System Images: a…google_apis | Google APIs Intel x86 Atom Sys…, a…gle_apis | Google APIs Intel x86 Atom_64 …, a… | Android TV Intel x86 Atom Syst…, a…ndroid-wear | Android Wear Intel x86 Atom Sy…, a…google_apis | Google APIs Intel x86 Atom Sys…, a… | Android TV Intel x86 Atom Syst…, a… | Android TV Intel x86 Atom Syst…, a…ndroid-wear | Wear OS Intel x86 Atom System …, a…-28 | Intel x86 Atom, a… | Intel x86 Atom_64, a…gle_apis | Google APIs Intel x86 Atom_64 …, a…s_playstore | Google Play Intel x86 Atom Sys…, a…laystore | Google Play Intel x86 Atom_64 … IDEs: Android Studio: 3.1 AI-173.4819257 Xcode: /undefined - /usr/bin/xcodebuild npmPackages: react: ^16.8.3 => 16.8.6 react-native: ^0.59.9 => 0.59.9 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-create-library: 3.1.2

Steps To Reproduce

1.upgrade from react-native 0.59.5 to react-native 0.59.9

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:18

github_iconTop GitHub Comments

71reactions
HananeAlSamroutcommented, Jun 26, 2019

problem fixed after restarting my laptop 😀

16reactions
danielsotopinocommented, Mar 19, 2020

leaving and reentering my house worked perfectly !!

Read more comments on GitHub >

github_iconTop Results From Across the Web

0 - Stack Overflow
I have fixed my issue by going to node_modules/core-js/modules/$.html.js and duplicate + rename $.html.js to $.html. It will resolve your ...
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 >
Module fs does not exist in the Haste module map
bundling failed : Error: Unable to resolve module `_wrapObjectFreezeAndFriends` from ` /node_modules/react-native/Libraries/Core/polyfillES6Collections.js`: ...
Read more >
Error: Unable to resolve module `react-native - bundling failed
js `: Module `react-native/Libraries/Components/View/ViewStylePropTypes` does not exist in the Haste module map INFO 21:13 This might be related ...
Read more >
react-native-sound/Help - Gitter
error : bundling failed: Error: Unable to resolve module react-native-sound from ... Module react-native-sound does not exist in the Haste module map.
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