-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Unable to resolve module schedule/tracking
#21150
Comments
I have the same issue. Indeed this comes with 0.57.0, switching back to 0.56.0 doesn't have the same behaviour. |
I solved this by installing the previous version of the schedule package:
|
it seems schedule 0.5.0 package error, thanks @stafak |
After several hours spent on a huge |
I am on React 16.3.2 & RN0.57, still facing the same error.
|
@hkung77 After update/downgrade of React/React Native I usually run into issues because of {
"scripts": {
"clean": "rimraf '{build,.jest,ios/build,android/build}'",
"clean:all": "yarn clean && rimraf {node_modules,./gems,ios/Pods,android/.gradle}",
"fastlane": "export LC_CTYPE=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 && bundle exec fastlane",
"nodeify": "rn-nodeify --install net,process,util,stream --hack",
"postinstall": "bundle install && butler patch && yarn remotedev && yarn nodeify",
"prepare:all": "yarn prepare:ios && yarn prepare:android",
"prepare:ios": "yarn fastlane ios prepare",
"prepare:android": "yarn fastlane android prepare",
"purge": "yarn clean:all && yarn && yarn prepare:all"
}
} The |
@krzysztof-miemiec I deleted my my node_modules and removed the package-lock, before I do a fresh npm install. But still the same issue |
👋 everyone, thanks for reporting - we'll try to have a look at it asap! In particular thanks @krzysztof-miemiec for the details |
Upgrading to RN 0.57.1 I receive the following error:
In my dependencies I've then added That error disappears but then I have another one:
Using an older version of react package (16.5.1),, as suggested by @krzysztof-miemiec, the error still appears. My
|
Quick update on this: a commit from the internal FB codebase is going to land soon (next couple days) and will sync the React deps (similar to this commit). So hold on, a fix will be there soon. |
@kelset Thank you for the update! |
I have the same problem, and tried |
I have the same error, I try to use yarn add [email protected],but it still doesn't work. Failed to load bundle (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false)with error:(Unable to resolve module 'schedule/tracking' from '/Users/Aaron/waveform/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js':Module 'schedule/tracking' does not exist in the haste module map. |
I tried and it worked:
|
Looks like it works with I also had to |
@pistou try this |
@krzysztof-miemiec thanks! Downgrading to react 16.5.1 worked for me! Haven't tried the other options. |
I was able to get things working by installing |
This comment has been minimized.
This comment has been minimized.
@narciero they are tested, this is why [email protected] had React dependency strictly locked on 16.5.0. Although I agree with you - upgrades are quite painful, i.e. pagination was broken on Android in 0.57.0. We keep forgetting that RN is still big WiP (no 1.x.x release) and not quite production-ready yet. |
@krzysztof-miemiec understandable, though even a fresh |
Rollback to React 16.5.0 and it works! |
As @krzysztof-miemiec mentioned, releases are tested. And there are reasons if we have rc phases and then we keep releasing minor versions. That said, update on this issue, a commit finally landed on master this weekend - and it will enabled usage of React 16.5.2 -> 7142e9b |
@kelset Thanks! |
Hey 👋 It's safe, I've tested 0.57.3 in multiple apps without issues these past few hours. (if you prefer to not, you can wait for future 0.57.x releases, 16.6.0 will be most likely released in a couple weeks at ReactConf). I know it's not ideal, but, again, I tested and hit no walls. |
@kelset whats the reason for syncing with 16.6.0-alpha instead of 16.5.2? |
@rahulbhankar786 That link doesn't provide a reason either. |
Guys, I'm on |
Hi all, this is my {
"name": "AwesomeProject",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.3.1",
"react-native": "^0.57.3"
},
"devDependencies": {
"@babel/runtime": "7.0.0",
"babel-jest": "23.6.0",
"jest": "23.6.0",
"react-test-renderer": "16.6.0-alpha.8af6728",
"schedule": "^0.4.0"
},
"jest": {
"preset": "react-native"
}
} |
Changin react version to |
Yes it's very advisable to stick with the react version that each react-native version recommends in the package.json. |
Guys, I update RN to 0.57.3 with schedule 0.4.0 (installed before) and React 16.5.2 and doesn't work. Any help? |
@ithustle Read the comments!
|
Environment
React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 536.34 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.11.4 - ~/.nodenv/versions/8.11.4/bin/node
npm: 5.6.0 - ~/.nodenv/versions/8.11.4/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: ^0.57.0 => 0.57.0
npmGlobalPackages:
react-native-cli: 2.0.1
Description
After updating to RN 0.57.0, I get
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
Right now I need to switch back to 0.56.0 for it to work again. Also, on 0.57.0 I get #21094
The text was updated successfully, but these errors were encountered: