-
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
Post 0.43 upgrade - Unable to resolve module ReactComponentTreeHook from node_modules/react-native/Libraries/Performance/Systrace.js #13390
Comments
I can verify that there's no |
I was able to get past this. I started at my screen for a while, as well as upgraded a few of my dev dependencies: {
"react-addons-test-utils": "16.0.0-alpha.3",
"react-dom": "16.0.0-alpha.6",
"react-native-mock": "^0.3.1",
"react-test-renderer": "16.0.0-alpha.6",
} Not sure which step worked. |
I got this problem too.Can you tell me how to solve this problem? |
error message: but I did have the file in this derectory:/Users/liuxuehuan/node_modules/react/lib,why didn't it work?@qpowell @sharnik @redmar |
For me react-native-git-upgrade did the trick. |
I have this exact same error after upgrading to 0.43.2, BUT only on one of my computers. Works fine on the other. I have tried resetting cache, reinstalling node modules etc but I still have the error. Anyone know the real cause of this error? UPDATE:
|
Thanks @Rom1k! For me it's:
|
Hi guys! 2017-04-12 19:18:06.838 [error][tid:main][UIView+React.m:173] Invalid layout for (15)<RCTScrollView: 0x7ffa34e3cb70; reactTag: 15; frame = (0 233; 414 0); clipsToBounds = YES; layer = <CALayer: 0x600000223fc0>>. position: {207, nan}. bounds: {{0, 0}, {414, nan}} is there any idea? |
react-native-git-upgrade work for me too!thanks,@pfulop |
react-native-git-upgrade work for me @pfulop |
react-native-git-upgrade work for me too! thanks,@pfulop |
If rm -rf node_modules/react
npm i react@16.0.0-alpha.6 -S |
OMG... i can't believe how this actually solved mine, because after trying all the stuff people suggested here i couldn't make it work. Did prolly 10~ rm -rf node_modules && npm install, then cleaning packager cache, running react-native-git-upgrade, restarted my mac 2 times, i didn't even know what was going on, until i saw a post in stackoverflow saying to "install react to latest version"... i said, how? i already got "react": "^16.0.0-alpha.6", on my package.json, so that shouldn't be the case.... i checked just in case my last npm install... and it was effectively complaining about react not being installed for my react-native... HOW DA ***** that happened? i spent 2 hours trying to figure this out. How was node not installing react if it was in the package.json? is this some kind of existing bug? So if you still have this problem, check on that. And just simply do:
On your project root. |
|
I tried That solved it for me. |
With 0.44.2 ReactComponentTreeHook cannot be found because RN (Systrace.js) tries to import files from /react/lib/, which does not exist at all in React 16.0.0-alpha.12. I'm just wondering how RN 0.44 works with anybody? |
The imports seem to be fixed in RN 0.45. Looks like they were too hasty release something unfinished as 0.44. |
That's true. If you are using RN 0.44, you'd better keep it as below:
don't use |
@danleveille specifying a version number should work as well. i.e react-native-git-upgrade 0.43.4 |
I have the same problem Cannot find module 'react/lib/ReactComponentTreeHook' from 'ReactDebugTool.js'
react-native-git-upgrade --> 0.2.7 Any idea? |
|
@ToniChaz When upgrading react to a alpha/beta version, make sure you also upgrade any other packages you are using from the react repo. In our case we needed to upgrade react-dom which was using deprecated classes in react.
|
I fix this issue by install react,the command is "npm install react@16.0.0-alpha.6 -S" "dependencies": { |
Unable to resolve module This might be related to #4968
RCTFatal please help me how to solve |
I got this issue because I upgraded React without updating React-Native. Reverting React back to old version (like @wwwjiandan 's solution) fixed it. |
Description
Unable to launch app after upgrading to 0.43.2.
Reproduction Steps and Sample Code
Upgraded
react-native
:There were no conflicts during the
react-native-git-upgrade
. I'm not sure what code examples to provide since the crash happens during the launch.I've also tried the steps here: #4968 with no luck.
Additional Information
package.json
:The text was updated successfully, but these errors were encountered: