Unable to resolve module 'scheduler/tracing'
See original GitHub issue- 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: macOS High Sierra 10.13.6 CPU: x64 Intel® Core™ i5-5257U CPU @ 2.70GHz Memory: 73.24 MB / 8.00 GB Shell: 5.3 - /bin/zsh Binaries: Node: 9.11.1 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.0, macOS 10.14, tvOS 12.0, watchOS 5.0 IDEs: Android Studio: 3.0 AI-171.4443003 Xcode: 10.0/10A255 - /usr/bin/xcodebuild npmPackages: react: 16.6.0-alpha.0 => 16.6.0-alpha.0 react-native: 0.57.3 => 0.57.3 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1
Description
After I upgraded to 0.57.3, I get this error after running react-native ios
error: bundling failed: Error: Unable to resolve module
scheduler/tracing
fromnode_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js
: Modulescheduler/tracing
does not exist in the Haste module map
Issue Analytics
- State:
- Created 5 years ago
- Reactions:11
- Comments:7
rm -rf node_modules && npm install
Anyway when there is a dependency error, it is npm-related. And if it ever worked with the same package.json, it can probably be resolved using this command.
@quynhnguyen68 I fix the issue follow this link https://github.com/facebook/react-native/issues/21150#issuecomment-429305215
Change react version to “16.6.0-alpha.8af6728”