Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bundling failed: Error: Unable to resolve module stream from ./node_modules/react-dom/cjs/react-dom-server.node.production.min.js`: Module does not exist in the module map #22449

Closed
dev-reactnative opened this issue Nov 28, 2018 · 2 comments
Labels
Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.

Comments

@dev-reactnative
Copy link

Environment

Environment:
OS: macOS 10.14
Node: 8.3.0
Yarn: 1.3.2
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.3.1 Build version 9E501

Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: ^0.52.0 => 0.52.3

Description

When I run npm start or yarn it generate following issue.
error: bundling failed: Error: Unable to resolve module stream from
./node_modules/react-dom/cjs/react-dom-server.node.production.min.js`: Module does not exist in the module map

This might be related to #4968
To resolve try the following:

  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 $TMPDIR/react-* or npm start -- --reset-cache. 4. Remove haste cache: rm -rf $TMPDIR/haste-map-react-native-packager-*.
    at ModuleResolver.resolveDependency (/Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:311:1719)
    at ResolutionRequest.resolveDependency (/Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:96:16)
    at DependencyGraph.resolveDependency (/Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/node-haste/DependencyGraph.js:269:4352)
    at /Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:201:36
    at Generator.next ()
    at step (/Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:306)
    at /Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:536
    at Promise ()
    at /Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:217
    at addDependency (/Users/vishnukhaitan1/Documents/Sunil/my-business/frontend/native/node_modules/metro/src/DeltaBundler/traverseDependencies.js:256:92)
    BUNDLE [ios, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓░░░░░░ 67.3% (1306/1592), failed.
@react-native-bot react-native-bot added Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used. ⏪Old Version labels Nov 28, 2018
@react-native-bot
Copy link
Collaborator

It looks like you are using an older version of React Native. Please update to the latest release, v0.57 and verify if the issue still exists.

The "⏪Old Version" label will be removed automatically once you edit your original post with the results of running react-native info on a project using the latest release.

@hramos hramos closed this as completed Dec 4, 2018
@hramos
Copy link
Contributor

hramos commented Dec 4, 2018

It looks like you pasted in the error message, but did not provide sufficient information as required in the template. Since this is for an older version, I'm closing the issue out.

@facebook facebook locked as resolved and limited conversation to collaborators Dec 4, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Dec 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot. Tech: Bundler 📦 This issue is related to the bundler (Metro, Haul, etc) used.
Projects
None yet
Development

No branches or pull requests

3 participants