Skip to content

Building from the source is broken #17742

Description

@SandroMachado

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 5.0.0
Yarn: 0.21.3
npm: 3.3.6
Watchman: 4.6.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: 16.0.0 => 16.0.0
react-native: master => master

Steps to Reproduce

  1. run npm install
  2. run ./scripts/packager.sh

Expected Behavior

❯ ./scripts/packager.sh
./scripts/packager.sh: line 11: ./scripts/.packager.env: No such file or directory
Scanning folders for symlinks in /Users/sandromachado/Desktop/temp/react-native/node_modules (15ms)
┌──────────────────────────────────────────────────────────────────────────────┐
│                                                                              │
│  Running Metro Bundler on port 8081.                                         │
│                                                                              │
│  Keep Metro running while developing on any JS projects. Feel free to        │
│  close this tab and run your own Metro instance if you prefer.               │
│                                                                              │
│  https://github.com/facebook/react-native                                    │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Looking for JS files in
   /Users/<user-directory>/Desktop/temp/react-native


Metro Bundler ready.

Loading dependency graph, done.
 BUNDLE  [android, dev] RNTester/js/RNTesterApp.android.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (585/585), done.

I think that this commit introduced the issue.

Actual Behavior

Loading dependency graph, done.
warning: the transform cache was reset.
error: bundling failed: Error: Unable to resolve module `metro/src/lib/bundle-modules/HMRClient` from `/Users/<user-directory>/Desktop/temp/react-native/Libraries/Utilities/HMRClient.js`: Module does not exist in the module map

Reproducible Demo

To get a demo just clone the source code from the master and execute the repro steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions