i just downloaded your project at github.com/brunolemos/react-native... and when i run yarn in the root it is also installing the packages in the wrong places.
Hey everyone, I downloaded the project, followed the updated tutorial and ran into the same exact issue. I got /mobile running again by updating the relative filepath in its package.json to the react-native-cli:
Hey, you both were right! React Native started getting installed inside packages/mobile/node_modules, which is wrong. Changing the path is not the right solution though.
I investigated and you need to make sure all your dependencies have the exact same version between the monorepo packages. For example, change your "react" dependency inside the mobile and web's package.json to the exact same version (e.g. 16.8.4).
This will make react-native get installed in the root node_modules again and also prevent multiple instances of react being installed in the same project, which would cause all kinds of bugs.
i just downloaded your project at
github.com/brunolemos/react-native... and when i run yarn in the root it is also installing the packages in the wrong places.
Hey everyone, I downloaded the project, followed the updated tutorial and ran into the same exact issue. I got
/mobile
running again by updating the relative filepath in its package.json to the react-native-cli:good luck!
Hey, you both were right! React Native started getting installed inside
packages/mobile/node_modules
, which is wrong. Changing the path is not the right solution though.I investigated and you need to make sure all your dependencies have the exact same version between the monorepo packages. For example, change your
"react"
dependency inside themobile
andweb
'spackage.json
to the exact same version (e.g.16.8.4
).This will make react-native get installed in the root
node_modules
again and also prevent multiple instances of react being installed in the same project, which would cause all kinds of bugs.Updated the tutorial and also the repository: github.com/brunolemos/react-native...