EAS build for android failing. It was working fine. But suddenly failed to build while yarn install dependencies
NB: No changes were made after the successful build-in of package.json. The project runs fine locally.
Eas build errors –
[4/4] Building fresh packages...
error /home/expo/workingdir/build/node_modules/babel-plugin-react-compiler: Command failed.
Exit code: 127
Command: ./scripts/link-react-compiler-runtime.sh
Arguments:
Directory: /home/expo/workingdir/build/node_modules/babel-plugin-react-compiler
Output:
/bin/sh: 1: ./scripts/link-react-compiler-runtime.sh: not found
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn install exited with non-zero code: 127
Complete eas build logs-
Running "yarn install" in /home/expo/workingdir/build directory
yarn install v1.22.21
info No lockfile found.
[1/4] Resolving packages...
warning @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.
warning @expo/config-plugins > [email protected]: Glob versions prior to v9 are no longer supported
warning @expo/config-plugins > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning expo > @expo/config > [email protected]: Glob versions prior to v9 are no longer supported
warning expo > @expo/cli > [email protected]: Glob versions prior to v9 are no longer supported
warning expo > @expo/cli > glob > [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
warning expo > @expo/metro-config > [email protected]: Glob versions prior to v9 are no longer supported
warning expo > @expo/config > sucrase > [email protected]: Glob versions prior to v9 are no longer supported
warning expo > @expo/cli > npm-package-arg > [email protected]: This package is no longer supported.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.
warning expo > @expo/cli > tempy > del > [email protected]: Rimraf versions prior to v4 are no longer supported
warning expo > @expo/cli > @react-native/dev-middleware > @rnx-kit/chromium-edge-launcher > [email protected]: Rimraf versions prior to v4 are no longer supported
warning expo > @expo/cli > tempy > del > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > [email protected]: Glob versions prior to v9 are no longer supported
warning expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > jscodeshift > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > jscodeshift > temp > [email protected]: Rimraf versions prior to v4 are no longer supported
warning expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > jscodeshift > temp > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
warning react-native > @react-native/community-cli-plugin > [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.
warning metro-react-native-babel-preset > @babel/[email protected]: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.
warning patch-package > [email protected]: Rimraf versions prior to v4 are no longer supported
warning patch-package > rimraf > [email protected]: Glob versions prior to v9 are no longer supported
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "react-native > @react-native/[email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "expo > babel-preset-expo > @react-native/babel-preset > @react-native/babel-plugin-codegen > @react-native/codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "expo-splash-screen > @expo/[email protected]" has unmet peer dependency "expo-modules-autolinking@>=0.8.1".
warning " > [email protected]" has unmet peer dependency "prop-types@^15.0 || ^16.0".
warning "react-native-phone-number-input > react-native-country-picker-modal > @callstack/[email protected]" has incorrect peer dependency "react@^16.3.0".
warning "react-native-phone-number-input > react-native-country-picker-modal > [email protected]" has incorrect peer dependency "[email protected]".
warning "react-native-phone-number-input > react-native-country-picker-modal > [email protected]" has unmet peer dependency "[email protected]".
warning "react-native-phone-number-input > react-native-country-picker-modal > [email protected]" has incorrect peer dependency "[email protected]".
warning "react-native-phone-number-input > react-native-country-picker-modal > [email protected]" has incorrect peer dependency "[email protected]".
warning "react-native-render-html > @native-html/[email protected]" has unmet peer dependency "@types/react-native@*".
warning "react-native-render-html > @native-html/transient-render-engine > @native-html/[email protected]" has unmet peer dependency "@types/react-native@*".
warning " > [email protected]" has unmet peer dependency "dayjs@>=1.10.7".
[4/4] Building fresh packages...
error /home/expo/workingdir/build/node_modules/babel-plugin-react-compiler: Command failed.
Exit code: 127
Command: ./scripts/link-react-compiler-runtime.sh
Arguments:
Directory: /home/expo/workingdir/build/node_modules/babel-plugin-react-compiler
Output:
/bin/sh: 1: ./scripts/link-react-compiler-runtime.sh: not found
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
3
Answers
The same with me, please help us
I encountered the same issue (I use
npm install
instead).I created the project with
npx create-expo-app --template blank expoApp2
, during creation, 127 error happened:It’s wired that if I used
expo init expoApp3
to create a project, and later choseblank
in the workflow:then everything goes well…
npm/npx ver: 10.9.0
expo ver: 6.3.10
I think the
node_modules
folder can’t be created for some unknown reason, so there is no further script/command could be called.Latest Update
Just resolved! As npm registry updated, I found some @babel/xxx modules resolved, e.g.,:
Finally…let’s call it a day 🙂
I’m having the same issue with same code that worked yesterday. Seems like it has to do with the update mentioned.
There seems to be a workaround if you have a yarn.lock file.
https://github.com/facebook/react/issues/31150#issuecomment-2399192691
I cannot try the fix since i removed my lock file in troubleshooting.
Edit; I managed to get it working by adding
to my package.json, removing node-modules and running yarn install.