Closed 8times4 closed 5 months ago
My team has also been experiencing this error lately, and it's been a major blocker. I just did a fresh clone of this repo, installed dependencies, navigated to the mobile directory, tried to run the app, and got this error.
Environment
node: 18.16.0
pnpm: 8.6.12
Steps
git clone git@github.com:byCedric/expo-monorepo-example.git
cd expo-monorepo-example
pnpm i
cd apps/mobile
npx expo run:ios
Error
@8times4 did you find a solution? I got the same issue now.
Same issue here. Haven't found a solution.
Same issue here, didn't find a solution yet. I'm trying:
$ eas build -p ios --local
It looks like there has been changes to pnpm setups in react-native: 0.72.8
Ok it looks like it worked by upgrading it to this. I think it's required that all of your react-native versions that are installed in every package has to be updated to 0.72.8.
I removed all node_modules folders and the package-lock.json files and ran npm install and after that pod install worked like expected.
My setup:
To check what versions are installed:
I had the issue that my react-native-reanimaed package was not in the same folder as my react-native package. I solved it by adding it to the correspondig package.json.
Provoqued by the previous comment, I was also not having react-native-codegen
in the same folder as react-native
.
Using Yarn Berry and a monorepo, the fix for me was to add:
"installConfig": {
"hoistingLimits": "workspaces"
}
to package.json
of the workspace that uses expo/react-native.
Hi all! Sorry for the extremely long delay! Next time, please do ping me on Twitter [@cedric_dev][https://x.com/cedric_dev].
This was indeed an issue with React Native. I just upgraded the monorepo to use Expo SDK 51 / React Native 0.74.1, meaning that you shouldn't run into this issue anymore.
The yarn/npm workarounds are super helpful, thanks for mentioning them!
Hope this helps!
Description of the bug
Wrong path for reactNativePath
To Reproduce
What steps did you perform which led to this issue?
apps/mobile
npx expo prebuild -p ios
Expected behavior
prebuild to pass.
Actual behavior
Additional context
Podfile
use_react_native!
func:if
:path => config[:reactNativePath],
is replaced with:path => "../../../node_modules/react-native"
then it works, even though react-native exists in my node_modules within apps/mobile.I have tried with both @react-native/codegen and react-native-codegen, they're defined as deps in
apps/mobile/package.json
the package only exists in the root node_modules, not in theapps/mobile/node_modules
I'm using an M1 Mac.
Thank you, 8x4