-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
BugPlatform: LinuxBuilding on Linux.Building on Linux.Tech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.This issue is related to the bundler (Metro, Haul, etc) used.
Description
- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
React Native Environment Info:
System:
OS: Linux 4.15 Ubuntu 18.04.1 LTS (Bionic Beaver)
CPU: x64 Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz
Memory: 116.35 MB / 3.77 GB
Shell: 4.4.19 - /bin/bash
Binaries:
Node: 8.12.0 - /usr/bin/node
Yarn: 1.10.1 - /usr/bin/yarn
npm: 6.4.1 - /usr/bin/npm
SDKs:
Android SDK:
Build Tools: 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.2, 28.0.3
API Levels: 23, 25, 26, 27, 28
npmPackages:
react: 16.5.0 => 16.5.0
react-native: 0.57.2 => 0.57.2
Description
In React Native 0.56, the bundler will "Scanning folders for symlinks" in the project's node_modules
directory. It doesn't do that anymore in React Native 0.57.
Reproduction procedure
- Clone peat-psuwit/react-native-symlink-scan-demo@9711207,
cd linkingProject
, andyarn install
. At this commit, the version of React Native is 0.56.1. - Run
react-native start
. Notice that in the very first line it saidScanning folders for symlinks in /path/to/linkingProject/node_modules (__ms)
. - Go to http://localhost:8081/index.bundle?platform=android. Notice that it bundles successfully and there's a string
"I'm linked!"
. - Now checkout
peat-psuwit/react-native-symlink-scan-demo@4298dccpeat-psuwit/react-native-symlink-scan-demo@8e5bb63. Runyarn install
again. At this commit, the version of React Native is0.57.20.60.4 and react-native-community/cli is at 2.8.3. - Run
react-native start
. Notice that there isn'tScanning folders for symlinks ...
anymore. - Go to http://localhost:8081/index.bundle?platform=android. The bundling will fail with
Unable to resolve module 'linked-package'
.
Additional info
I believe this breaks in 9a77ff5. I'll prepare the PR that fixes this problem.
Metadata
Metadata
Assignees
Labels
BugPlatform: LinuxBuilding on Linux.Building on Linux.Tech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.This issue is related to the bundler (Metro, Haul, etc) used.