nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 181 forks source link

EAS build fails when building with-expo-router #352

Closed conor909 closed 1 year ago

conor909 commented 1 year ago

I had issues with my app build, and eventually tested building a fresh download from with-expo-router.

to reproduce: npx create-solito-app@latest test-app eas build --profile development

It fails at installing pods with the following output:

Using Expo modules
[Expo] Enabling modular headers for pod ExpoModulesCore
Auto-generating `.xcode.env.local` with $NODE_BINARY=/Users/expo/.nvm/versions/node/v16.18.1/bin/node
[!] Invalid `Podfile` file: 
[!] Invalid `RNReanimated.podspec` file: [react-native-reanimated] Multiple versions of Reanimated were detected. Only one instance of react-native-reanimated can be installed in a project. You need to resolve the conflict manually. Check out the documentation: https://docs.swmansion.com/react-native-reanimated/docs/next/fundamentals/troubleshooting#multiple-versions-of-reanimated-were-detected 
Conflict between: 
- /Users/expo/workingdir/build/node_modules/react-native-reanimated
- /Users/expo/workingdir/build/apps/expo/node_modules/react-native-reanimated
.
 #  from /Users/expo/workingdir/build/apps/expo/node_modules/react-native-reanimated/RNReanimated.podspec:6
 #  -------------------------------------------
 #  config = find_config()
 >  assert_no_multiple_instances(config)
 #  assert_no_reanimated2_with_new_architecture(reanimated_package_json)
 #  -------------------------------------------
.
 #  from /Users/expo/workingdir/build/apps/expo/ios/Podfile:42
 #  -------------------------------------------
 #    use_expo_modules!
 >    config = use_native_modules!
 #  
 #  -------------------------------------------
Error: Unknown error. See logs for more information.
Build failed: Unknown error. See logs for more information.
nandorojo commented 1 year ago

it says there are multiple reanimated versions, so i would debug that. PRs welcome too

conor909 commented 1 year ago

I spent all day adding resolutions to various dependencies, each time something else would cause the build to fail. I thought there might be a root cause in the boilerplate somewhere, but I’ll continue debugging today

nandorojo commented 1 year ago

Odd...it's been working for me. Did yarn why react-native-reanimated help? Are you using yarn 1?

conor909 commented 1 year ago

closed #353