skip to Main Content

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


  1. The same with me, please help us

    Login or Signup to reply.
  2. I encountered the same issue (I use npm install instead).

    npm install
    npm error code 127
    npm error path /Users/kli/workspace/expoApp2/node_modules/babel-plugin-react-compiler
    npm error command failed
    npm error command sh -c ./scripts/link-react-compiler-runtime.sh
    npm error sh: ./scripts/link-react-compiler-runtime.sh: No such file or directory
    npm error A complete log of this run can be found in: /Users/kli/.npm/_logs/2024-10-08T08_32_06_752Z-debug-0.log
    

    I created the project with npx create-expo-app --template blank expoApp2, during creation, 127 error happened:

    npx create-expo-app --template blank expoApp2
    ✔ Downloaded and extracted project files.
    > npm install
    npm warn deprecated [email protected]: This package is no longer supported.
    npm warn deprecated [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.
    npm warn deprecated @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.
    npm warn deprecated @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.
    npm warn deprecated @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.
    npm warn deprecated @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.
    npm warn deprecated @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.
    npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated @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.
    npm warn deprecated @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.
    npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
    npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
    npm warn deprecated [email protected]: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
    npm warn deprecated @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.
    npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
    npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
    npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
    npm error code 127
    npm error path /Users/kli/workspace/expoApp2/node_modules/babel-plugin-react-compiler
    npm error command failed
    npm error command sh -c ./scripts/link-react-compiler-runtime.sh
    npm error sh: ./scripts/link-react-compiler-runtime.sh: No such file or directory
    npm error A complete log of this run can be found in: /Users/kli/.npm/_logs/2024-10-08T08_38_27_326Z-debug-0.log
    Something went wrong installing JavaScript dependencies. Check your npm logs. Continuing to create the app.
    Error: npm install exited with non-zero code: 127
    
    ✅ Your project is ready!
    
    To run your project, navigate to the directory and run one of the following npm commands.
    
    - cd expoApp2
    - npm run android
    - npm run ios
    - npm run web
    

    It’s wired that if I used expo init expoApp3 to create a project, and later chose blank in the workflow:

    enter image description here

    then everything goes well…

    npm/npx ver: 10.9.0

    expo ver: 6.3.10

    expo --version
    WARNING: The legacy expo-cli does not support Node +17. Migrate to the new local Expo CLI: https://blog.expo.dev/the-new-expo-cli-f4250d8e3421.
    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.

    • app.json
    {
      "expo": {
        "name": "expoApp2",
        "slug": "expoApp2",
        "version": "1.0.0",
        "orientation": "portrait",
        "icon": "./assets/icon.png",
        "userInterfaceStyle": "light",
        "splash": {
          "image": "./assets/splash.png",
          "resizeMode": "contain",
          "backgroundColor": "#ffffff"
        },
        "ios": {
          "supportsTablet": true
        },
        "android": {
          "adaptiveIcon": {
            "foregroundImage": "./assets/adaptive-icon.png",
            "backgroundColor": "#ffffff"
          }
        },
        "web": {
          "favicon": "./assets/favicon.png"
        }
      }
    }
    
    • package.json
    {
      "name": "expoapp2",
      "version": "1.0.0",
      "main": "expo/AppEntry.js",
      "scripts": {
        "start": "expo start",
        "android": "expo start --android",
        "ios": "expo start --ios",
        "web": "expo start --web"
      },
      "dependencies": {
        "expo": "~51.0.28",
        "expo-status-bar": "~1.12.1",
        "react": "18.2.0",
        "react-native": "0.74.5"
      },
      "devDependencies": {
        "@babel/core": "^7.20.0"
      },
      "private": true
    }
    

    Latest Update

    Just resolved! As npm registry updated, I found some @babel/xxx modules resolved, e.g.,:

        "node_modules/@babel/generator": {
          "version": "7.25.7",
          "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.25.7.tgz",
          "integrity": "sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA==",
          "license": "MIT",
          "dependencies": {
            "@babel/types": "^7.25.7",
            "@jridgewell/gen-mapping": "^0.3.5",
            "@jridgewell/trace-mapping": "^0.3.25",
            "jsesc": "^3.0.2"
          },
          "engines": {
            "node": ">=6.9.0"
          }
        },
    

    Finally…let’s call it a day 🙂

    Login or Signup to reply.
  3. 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

    "resolutions": {
     "**/babel-plugin-react-compiler": "0.0.0-experimental-ca8e0be-20240916"
    },
    

    to my package.json, removing node-modules and running yarn install.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search