Post 0.43 upgrade - Unable to resolve module ReactComponentTreeHook from node_modules/react-native/Libraries/Performance/Systrace.js
See original GitHub issueDescription
Unable to launch app after upgrading to 0.43.2.
Reproduction Steps and Sample Code
Upgraded react-native:
$ npm install -g react-native-git-upgrade
$ npm install react-native@latest --save
$ react-native-git-upgrade
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: https://github.com/facebook/react-native/issues/4968 with no luck.
Additional Information
- React Native version: 0.43.2
- Platform: both
- Development Operating System: MacOS
- Dev tools: Xcode 8.3, Android Studio 2.3.1
package.json:
{
"name": "zzzzz",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "ava",
"watch": "ava --watch",
"coverage": "nyc ava"
},
"dependencies": {
"axios": "^0.15.3",
"base-64": "^0.1.0",
"lodash": "^4.17.4",
"react": "^16.0.0-alpha.6",
"react-native": "^0.43.2",
"react-native-audio-streamer": "0.0.4",
"react-native-audio-streaming": "^2.3.1",
"react-native-code-push": "^1.17.3-beta",
"react-native-drawer": "^2.3.0",
"react-native-fabric": "^0.4.1",
"react-native-fs": "^2.1.0-rc.1",
"react-native-keyboard-aware-scroll-view": "^0.2.7",
"react-native-music-control": "^0.4.0",
"react-native-progress": "^3.2.0",
"react-native-router-flux": "git+ssh://git@github.com/cladeco/react-native-router-flux.git",
"react-native-searchbar": "^1.7.0",
"react-native-sound": "^0.9.0",
"react-native-vector-icons": "^4.0.0",
"react-native-video": "git+ssh://git@github.com/react-native-community/react-native-video.git#master",
"react-native-video-player": "^0.6.1",
"react-redux": "^5.0.1",
"redux": "^3.6.0",
"redux-logger": "^2.7.4",
"redux-persist": "^4.0.1",
"redux-thunk": "^2.1.0"
},
"devDependencies": {
"ava": "^0.18.2",
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"enzyme": "^2.7.1",
"eslint": "^3.15.0",
"eslint-config-airbnb": "^14.1.0",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-jsx-a11y": "^4.0.0",
"eslint-plugin-react": "^6.10.0",
"jest": "18.1.0",
"jsdom": "^9.12.0",
"mockery": "^2.0.0",
"nyc": "^10.1.2",
"react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
"react-native-mock": "^0.3.1",
"react-test-renderer": "15.4.2",
"redux-devtools": "^3.3.1",
"sinon": "^1.17.7"
},
"jest": {
"preset": "react-native"
},
"ava": {
"babel": "inherit",
"require": [
"babel-register",
"babel-polyfill",
"react-native-mock/mock",
"./__tests__/_Setup.js"
]
},
"nyc": {
"include": [
"app/**/*.js"
]
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:27
- Comments:26 (4 by maintainers)
Top Results From Across the Web
Unable to resolve module `react/lib/ReactComponentTreeHook`
To fix this problem, stop the react packager and upgrade the version ... to react-dom/lib, which is why the packager can't find some...
Read more >How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

For me react-native-git-upgrade did the trick.
Thanks @rom1k!
For me it’s: