iOS EAS build failing

Eas version: eas-cli/0.33.1 darwin-x64 node-v14.15.1
Bare workflow

During step 3, install dependencies, and step 3/5 for yarn it fails on EAS servers, with this error log.

I installed and configured fastlane locally, & ran eas build --platform ios --profile preview with this eas.json file:

{
    "build": {
        "development": {
            "distribution": "internal",
            "android": {
                "gradleCommand": ":app:assembleDebug"
            },
            "ios": {
                "buildConfiguration": "Debug"
            }
        },
        "preview": {
            "ios": {
                "distribution": "internal",
                "simulator": true
            }
        },
        "production": {}
    },
    "submit": {
        "production": {}
    }
}

& this is the last error that fastlane generates.

[RUN_FASTLANE] › Executing [CP-User] Generate app.manifest for expo-updates
[RUN_FASTLANE] 
❌ Metro encountered an error:
Unable to resolve module @babel/runtime/helpers/interopRequireDefault from /var/folders/wh/872ysnf922x0k_1wgvqp93100000gn/T/eas-build-local-nodejs/bf4bfa61-12fb-4af0-ae3f-4df30e8efeb4/build/index.js: @babel/runtime/helpers/interopRequireDefault could not be found within the project or in these directories:
  node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
> 1 | import { registerRootComponent } from 'expo'
  2 |
  3 | import App from './App'

Hi, I have a similar issue running

eas build --platform ios  --local
❌ Metro encountered an error:
Unable to resolve module @babel/runtime/helpers/interopRequireDefault from /var/folders/ys/3jy6k9dd05xfthszhckf014m0000gn/T/eas-build-local-nodejs/2a708ea8-dfeb-40ee-b6e9-8034dd9e18da/build/index.js: @babel/runtime/helpers/interopRequireDefault could not be found within the project or in these directories:
  node_modules

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
> 1 | import 'react-native-gesture-handler';
  2 | import {registerRootComponent} from 'expo';
  3 |
  4 | import App from './App';

I have checked during the build and @babel/runtime/helpers/interopRequireDefault in present in node_modules

this seems to be related to this issue: Module @babel/runtime/helpers/interopRequireDefault does not exist in the Haste module map · Issue #21310 · facebook/react-native · GitHub

we’ll investigate

we have rolled out a fix for this, related pr: [updates] Fix iOS app.manifest generation error in macos tmp folder by Kudo · Pull Request #14956 · expo/expo · GitHub

it’s available in expo-updates@0.10.9

1 Like

Problem solved, thanks a lot !