eas-cli: 5.2.0
I’m able to run the post-install hook locally, but they fail on Expo Build
Here are the relevant scripts from package.json:
"build": "expo export --output-dir ./build --platform all",
"eas-build-post-install": "pnpm run -w build:app"
However, when running via
npx eas build --profile development --platform android
I get this error:
app:build: > expo export --output-dir ./build --platform all
app:build:
app:build: Using src/app as the root directory for Expo Router.
app:build: Starting Metro Bundler
app:build: iOS Bundling failed 4499ms
app:build:
app:build: Error: Unable to resolve module @babel/runtime/helpers/interopRequireDefault from /home/expo/workingdir/build/apps/app/index.js: @babel/runtime/helpers/interopRequireDefault could not be found within the project or in these directories:
app:build: node_modules
app:build: …/…/node_modules
I had seen a few workarounds that involved adding @babel/runtime as a dependency, but that doesn’t change the outcome