eas-cli: error: unknown command 'generate-modules-provider'. See ' --help'. EAS IOS Build Expo49
Build/Submit details page URL
No response
Summary
EAS build for IOS is failing with the following error: error: unknown command ‘generate-modules-provider’. See ’ --help’.
Expo SDK version: ^49.0.21 React Native Version: “0.72.6”
Failing at fastlane
Managed or bare?
Managed
Environment
eas build --platform ios
Error output
› Executing FrontlineMTApp » [Expo] Configure project
❌ error: unknown command ‘generate-modules-provider’. See ’ --help’.
Reproducible demo or steps to reproduce from a blank project
Build with Expo 49 for IOS and failing at fastlane
Using NPM to manage dependencies.
Only happening while using npm works fine with yarn
About this issue
- Original URL
- State: closed
- Created 5 months ago
- Reactions: 4
- Comments: 19
Fixed it, make sure to run
npx expo-doctorand make sure to install comptaible version ofexpo-modules-autolinkingi.e ~1.5.0 is installed on your project. @abranhe please confirm it works for your team as well and I will close the issue.@3madurya3 That makes sense. I am assuming updated version of
expo-updatesmight be using an updated version ofexpo-modules-autolinkingwhich might have the caused the issue. I thinkgenerate-modules-provideris the issue fromexpo-modules-autolinkingI might be wrong though.This was the issue I also faced.
expo-modules-autolinkingwas at version1.10.3, which is incompatible withexpoSDK 49. I didn’t want to install the version~1.5.0manually because that could cause version incompatibilities and other unexpected issues. So in order to downgrade to~1.5.0I had to find the culprit which was forcing it to version1.10.3. Runningnpm ls expo-modules-autolinking@1.10.3(if usingnpm) really helped me out. It showed me that the culprit waseas-cli@^7.6.0, because it was evaluating toeas-cli@7.6.2. Downgrading theeas-cliversion fixed the issue.@abranhe not yet, My app is stuck at splashscreen with successful build using yarn. So it might be happening with yarn too
@evandrorocha It’s probably because build job is unable to find module “generate-modules-provider”.
@yokozawa0701 I am not ready to upgrade to expo 50 yet.