I'm cloning a proyect:
The steps are:
react-native run-ios
RCTWebSocket
Custom Compiler Flags
react-native run-ios
upgrade
When this command is executed, it starts showing me some overrides to some files and at the end of this process, the problem persists.
react-native-cli: 1.0.0
react-native: 0.32.1
Xcode 8
10.0
PDTA: When I start a new project works perfect
The only difference between the 2 macs is the cli version:
`react-native-cli: 1.1.0` --> my mac
`react-native-cli: 1.2.0` --> the other mac
The problem is most likely that you are using React 15.4.x instead of 15.3.x. One of the changes between 15.3 and 15.4 was that many of the modules under react/lib
were moved to react-dom/lib
, which is why the packager can't find react/lib/ReactUpdates
.
Ensure that your package.json file locks React to 15.3.x:
"dependencies": {
"react": "~15.3.2"
}
Then delete your node_modules
folder and run yarn
or npm install
again. Verify that you installed React 15.3.x:
$ npm ls react
app@1.0.0 /code/app
└── react@15.3.2
Last, restart the React Native server and load your bundle again.