0

I encountered a eas build pb with ios. I have an Cannot find module yargs on the run fastlane process. Here is my config:

expo-env-info 1.0.5 environment info:
System:
  OS: macOS 12.5
  Shell: 5.8.1 - /bin/zsh
Binaries:
  Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node
  Yarn: 1.22.17 - /usr/local/bin/yarn
  npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm
  Watchman: 2022.10.24.00 - /usr/local/bin/watchman
Managers:
  CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
IDEs:
  Android Studio: 2021.3 AI-213.7172.25.2113.9123335
  Xcode: 14.1/14B47b - /usr/bin/xcodebuild
npmPackages:
  @expo/metro-config: ^0.5.1 => 0.5.1 
  @expo/webpack-config: ^0.17.2 => 0.17.3 
  expo: ~47.0.8 => 47.0.8 
  react: 18.1.0 => 18.1.0 
  react-dom: 18.1.0 => 18.1.0 
  react-native: 0.70.5 => 0.70.5 
  react-native-web: ~0.18.7 => 0.18.10 
npmGlobalPackages:
  eas-cli: 2.7.1
  expo-cli: 6.0.8
Expo Workflow: bare

Do you have any idea? Do you need more infos? I had succesfull builds before installing and using rnfirebase. Everything works as expected on my local environment.

Error: Cannot find module 'yargs'
Require stack:
 - /Users/expo/workingdir/build/node_modules/react-native/scripts/generate-specs-cli.js
 at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
 at Function.Module._load (node:internal/modules/cjs/loader:833:27)
 at Module.require (node:internal/modules/cjs/loader:1057:19)
 at require (node:internal/modules/cjs/helpers:103:18)
 at Object.<anonymous> (/Users/expo/workingdir/build/node_modules/react-native/scripts/generate-specs-cli.js:12:15)
 at Module._compile (node:internal/modules/cjs/loader:1155:14)
 at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
 at Module.load (node:internal/modules/cjs/loader:1033:32)
 at Function.Module._load (node:internal/modules/cjs/loader:868:12)
 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
 '/Users/expo/workingdir/build/node_modules/react-native/scripts/generate-specs- cli.js'
 ]
}
Julien
  • 83
  • 8

0 Answers0