question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Post 0.43 upgrade - Unable to resolve module ReactComponentTreeHook from node_modules/react-native/Libraries/Performance/Systrace.js

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Reactions:27
  • Comments:26 (4 by maintainers)

github_iconTop GitHub Comments

51reactions
pfulopcommented, Apr 8, 2017

For me react-native-git-upgrade did the trick.

23reactions
mgscreativacommented, Apr 10, 2017

Thanks @rom1k!

For me it’s:

...
"react": "16.0.0-alpha.6",
"react-native": "0.43.3",
...
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found