Skip to content

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

Description

@dev-reactnative

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.

Activity

  1. added
    Tech: Bundler 📦
    on Nov 28, 2018
  2. react-native-bot commented on Nov 28, 2018

    @react-native-bot
    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.

  3. hramos commented on Dec 4, 2018

    @hramos
    Contributor

    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.

  4. locked as resolved and limited conversation to collaborators on Dec 4, 2019
  5. added
    Resolution: Locked
    on Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: LockedTech: Bundler 📦

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions