-
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
Regression: Unable to resolve module 'scheduler/tracing' in ReactNative 0.59.3 #24573
Comments
Can you run If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.
|
I did have the react-native info output in the environment section. I just removed the leading indent -- maybe the bot will recognize it now. |
This is likely a result of bad cache and clearing node modules (happens when upgrading). Please reinstall node_modules followed by restart of packager and its cache with |
Thanks @thymikee, that now works at least for the blank project. (I have a new error for my original project, which I will try to figure out before posting another issue.) I would love it if when you searched on "clear cache" in the React Native documentation, that it would tell you to do |
we should make |
Actually, my complaint was more about knowing to use yarn rather than reset-cache vs clear-cache. If you go to the React Native documentation and search on "reset cache", you still won't get any useful information. Once I cleared the cache as you suggested, my project was seeing the issue described here I tried implementing the suggestion to add the metro-react-native-babel-preset package, and that got rid of that error, but created a new one: Can't find variable Intl. Let me know if you have suggestions. |
Typing Do you use a variable Intl somewhere? I've never seen this error before, but looks like it's coming from PagerAndroid - maybe that's something you need to upgrade as well |
Yeah, sorry, I should have checked my code for Intl. Not a variable, but part of a module that I installed but wasn't really using, so forgot about. I got rid of it, and now I have a new error. I'll bang my head against that one and open a new issue if I can't figure it out. |
Hey @thymikee, one more quick question: is there any other way to clear the cache? I now have an error: undefined is not an object (evaluating '_reactNative.Modal.propTypes.animationType'). I removed all references to animationType from my project, and I am still getting this error. I tried running my blank project, and I get the exact same error. So that suggests that it's a caching problem. I did a |
Just realized I was doing |
Resolved: I ended up creating a new project with |
that is no solution |
Any update on this? resetting cache did no fixed it. |
if you are using "react-native": "^0.59.8", update your react to "react": "16.8.5". |
its work for me |
cache resetting, force cache clean and other proposed solutions are not working. Any solid solution for this ? |
💥 Regression Report
I am trying to upgrade to RN 0.59.3 from RN 0.56 (my understanding is that I need 0.59 to get 64 bit, required by Play Store by August). I am seeing an "Unable to resolve module 'scheduler/tracing'" message when the app loads on both an Android simulator and device. (Note that it says "scheduler/tracing", not "schedule/tracking", like it does in some other issues posted here.)
I tried using version 16.6.0-alpha.8af6728 since that was suggested here, but no difference. I believe that RN 0.59 needs react 16.8.
Here's the thing that's really strange. I tried creating a new RN 0.59 project through react-native init. It's essentially AwesomeProject. When I run it, I get the same error. The error refers to directories in my old project, despite the fact that I have created this new project in a completely different directory. I tried changing the directory that the old project is in, but the error refers to the original project directory. So it's as if something got cached. I tried uninstalling react-native-cli and react-native, and then reinstalling them, but no result. I removed the node_modules directory and did an npm install, but that hasn't had an effect either.
Last working version
Worked up to version: 0.56
Stopped working in version: 0.59
To Reproduce
Given that I am seeing this error when I do a react-native init, I'm not sure how you can reproduce it.
Expected Behavior
Should run without the red screen with error showing up.
Code Example
Given that I am seeing this error when I do a react-native init, I'm not sure how you can reproduce it. If need be, I can create a repo with the original project, but I suspect something else is going on. Here is my package.json file:
{
"name": "Transfusion",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.8.3",
"react-native": "^0.59.5"
},
"devDependencies": {
"@babel/core": "7.4.3",
"@babel/runtime": "^7.4.3",
"babel-jest": "24.7.1",
"jest": "24.7.1",
"metro-react-native-babel-preset": "0.53.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}
Environment
System:
OS: macOS 10.14.4
CPU: (8) x64 Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Memory: 307.59 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.7.0 - /usr/local/bin/node
npm: 6.2.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: ^0.59.5 => 0.59.5
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native: 0.59.3
The text was updated successfully, but these errors were encountered: