Skip to content

Cannot get Expo config from an Expo project #3145

@montecassino

Description

@montecassino

Build/Submit details page URL

No response

Summary

Hello guys,

I recently transferred my Expo project to a new Ubuntu Linux PC. The app was originally developed on my MacBook Pro running macOS Sequoia.

As usual, the process was:

Clone the project from GitHub.

Install the project dependencies.
Install eas-cli globally.
Install expo-cli globally.

After setting up all the prerequisites to build the project, I ran the following command:
EAS_BUILD_PROFILE=development time -p eas build --platform android --local --profile development --clear-cache


app.config.ts

{
  name: 'myself (Development)',
  slug: 'myself-mobile',
  orientation: 'portrait',
  icon: './assets/images/icon.png',
  scheme: 'myself',
  userInterfaceStyle: 'automatic',
  newArchEnabled: true,
  plugins: [
    [
      'expo-web-browser'
    ],
    [
      'expo-localization'
    ],
    [
      'expo-font',
      {
        fonts: [
          {
            fontFamily: 'InstagramSans',
            fontDefinitions: [
              {
                path: './assets/fonts/InstagramSans.ttf',
                weight: 400
              },
              {
                path: './assets/fonts/InstagramSansBold.ttf',
                weight: 700
              },
              {
                path: './assets/fonts/InstagramSansLight.ttf',
                weight: 300
              },
              {
                path: './assets/fonts/InstagramSansMedium.ttf',
                weight: 500
              }
            ]
          }
        ]
      }
    ],
    'expo-router',
    [
      'expo-splash-screen',
      {
        image: './assets/images/splashicon.png',
        imageWidth: 200,
        resizeMode: 'contain',
        backgroundColor: '#ffffff'
      }
    ],
    [
      'expo-asset',
      {
        assets: [
          './assets/images'
        ]
      }
    ]
  ],
  owner: 'myself',
  version: '1.4.11',
  description: undefined,
  sdkVersion: '53.0.0',
  platforms: [
    'ios',
    'android',
    'web'
  ],
  ios: {
    supportsTablet: true,
    bundleIdentifier: 'com.myself.development'
  },
  android: {
    versionCode: 10411,
    package: 'com.myself.development',
    edgeToEdgeEnabled: true,
    adaptiveIcon: {
      foregroundImage: './assets/images/adaptiveicon.png',
      backgroundColor: '#ffffff'
    },
    config: {
      googleMaps: {
        apiKey: ''
      }
    }
  },
  web: {
    bundler: 'metro',
    output: 'static',
    favicon: './assets/images/favicon.png'
  },
  experiments: {
    turboModules: true,
    typedRoutes: true,
    buildCacheProvider: {
      plugin: 'expo-build-disk-cache'
    }
  },
  _internal: {
    isDebug: false,
    pluginHistory: {
      'expo-web-browser': {
        name: 'expo-web-browser',
        version: '14.2.0'
      },
      'expo-font': {
        name: 'expo-font',
        version: '13.3.2'
      },
      'expo-splash-screen': {
        name: 'expo-splash-screen',
        version: '0.30.10'
      },
      'expo-asset': {
        name: 'expo-asset',
        version: '11.1.7'
      }
    }
  },
  extra: {
  
  },
  androidStatusBar: {
    backgroundColor: '#ffffff'
  }
}

dependencies:

"dependencies": {
    "@expo/vector-icons": "^14.1.0",
    "@gorhom/bottom-sheet": "^5.1.5",
    "@react-navigation/bottom-tabs": "^7.3.10",
    "@react-navigation/elements": "^2.3.8",
    "@react-navigation/native": "^7.1.6",
    "@tanstack/react-query": "^5.80.6",
    "expo": "53.0.20",
    "expo-application": "~6.1.5",
    "expo-blur": "~14.1.5",
    "expo-constants": "~17.1.6",
    "expo-crypto": "~14.1.5",
    "expo-dev-client": "~5.2.4",
    "expo-device": "~7.1.4",
    "expo-file-system": "~18.1.10",
    "expo-font": "~13.3.1",
    "expo-haptics": "~14.1.4",
    "expo-image": "~2.4.0",
    "expo-linking": "~7.1.7",
    "expo-localization": "~16.1.6",
    "expo-location": "~18.1.6",
    "expo-router": "~5.1.4",
    "expo-splash-screen": "~0.30.10",
    "expo-status-bar": "~2.2.3",
    "expo-symbols": "~0.4.5",
    "expo-system-ui": "~5.0.10",
    "expo-web-browser": "~14.2.0",
    "nativewind": "^4.1.23",
    "posthog-react-native": "^4.1.0",
    "react": "19.0.0",
    "react-dom": "19.0.0",
    "react-native": "0.79.5",
    "react-native-gesture-handler": "~2.24.0",
    "react-native-image-viewing": "^0.2.2",
    "react-native-maps": "1.24.2",
    "react-native-mmkv": "^3.3.0",
    "react-native-reanimated": "~3.17.4",
    "react-native-reanimated-carousel": "^4.0.2",
    "react-native-safe-area-context": "5.4.0",
    "react-native-screens": "~4.11.1",
    "react-native-web": "~0.20.0",
    "react-native-webview": "13.13.5",
    "tailwindcss": "^3.4.17"
  },
  "devDependencies": {
    "@babel/core": "^7.25.2",
    "@types/react": "~19.0.10",
    "eslint": "^9.25.0",
    "eslint-config-expo": "~9.2.0",
    "expo-build-disk-cache": "^0.4.6",
    "typescript": "~5.8.3"
  },

Managed or bare?

Managed

Environment

expo-env-info 1.3.4 environment info:
System:
OS: Linux 6.14 Ubuntu 25.04 25.04 (Plucky Puffin)
Shell: 5.2.37 - /bin/bash
npmPackages:
expo: 53.0.20 => 53.0.20
expo-router: ~5.1.4 => 5.1.4
react: 19.0.0 => 19.0.0
react-dom: 19.0.0 => 19.0.0
react-native: 0.79.5 => 0.79.5
react-native-web: ~0.20.0 => 0.20.0
Expo Workflow: bare

Error output

Failed to read the app config from the project using "npx expo config" command: npx expo config --json exited with non-zero code: 7.
Falling back to the version of "@expo/config" shipped with the EAS CLI.
Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
Resolved "development" environment for the build. Learn more
Environment variables with visibility "Plain text" and "Sensitive" loaded from the "development" environment on EAS: BASE_URL, ENV, GOOGLE_FORM_REQUEST_PARKINGLOT_EDIT_INFO, GOOGLE_FORM_SUBMIT_FEEDBACK, GOOGLE_FORM_SUBMIT_PARKINGLOT, GOOGLE_MAPS_API_KEY, SHARED_SECRET.
Environment variables loaded from the "development" build profile "env" configuration: ANDROID_HOME.

Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
Loading environment variables...
Build profile: development
Environment variables validated successfully.
Development BASE_URL set to: http://192.168.11.149:3069/api/v1
Building version : 10411 1.4.11
✔ Using remote Android credentials (Expo server)
✔ Using Keystore from configuration: Build Credentials AksX1orgp9 (default)
Cannot get Expo config from an Expo project - node /home/myself/Documents/Projects/myself-mobile/node_modules/@expo/fingerprint/build/ExpoConfigLoader.js /home/myself/Documents/Projects/myself-mobile /tmp/expo-fingerprint-x1oKiB/.fingerprintignore exited with non-zero code: 1: Error: node /home/myself/Documents/Projects/myself-mobile/node_modules/@expo/fingerprint/build/ExpoConfigLoader.js /home/myself/Documents/Projects/myself-mobile /tmp/expo-fingerprint-x1oKiB/.fingerprintignore exited with non-zero code: 1
at ChildProcess.completionListener (/home/myself/Documents/Projects/myself-mobile/node_modules/@expo/spawn-async/build/spawnAsync.js:42:23)
at Object.onceWrapper (node:events:633:26)
at ChildProcess.emit (node:events:518:28)
at maybeClose (node:internal/child_process:1101:16)
at ChildProcess._handle.onexit (node:internal/child_process:304:5)
...
at spawnAsync (/home/myself/Documents/Projects/myself-mobile/node_modules/@expo/spawn-async/build/spawnAsync.js:7:23)
at spawnWithIpcAsync (/home/myself/Documents/Projects/myself-mobile/node_modules/@expo/fingerprint/build/utils/SpawnIPC.js:13:47)
at getExpoConfigAsync (/home/myself/Documents/Projects/myself-mobile/node_modules/@expo/fingerprint/build/ExpoConfig.js:27:68)
at async getHashSourcesAsync (/home/myself/Documents/Projects/myself-mobile/node_modules/@expo/fingerprint/build/sourcer/Sourcer.js:18:51)
at async Object.createFingerprintAsync (/home/myself/Documents/Projects/myself-mobile/node_modules/@expo/fingerprint/build/Fingerprint.js:22:21)
at async withTemporaryEnvAsync (/usr/local/lib/node_modules/eas-cli/build/fingerprint/cli.js:78:16)
at async createFingerprintWithoutLoggingAsync (/usr/local/lib/node_modules/eas-cli/build/fingerprint/cli.js:72:12)
at async createFingerprintAsync (/usr/local/lib/node_modules/eas-cli/build/fingerprint/cli.js:36:29)
at async computeAndMaybeUploadFingerprintWithoutExpoUpdatesAsync (/usr/local/lib/node_modules/eas-cli/build/build/build.js:482:25)
at async computeAndMaybeUploadRuntimeAndFingerprintMetadataAsync (/usr/local/lib/node_modules/eas-cli/build/build/build.js:434:29)
✔ Computed project fingerprint
Invalid Version:
Error: build command failed.
real 8.97
user 5.56
sys 1.70

Reproducible demo or steps to reproduce from a blank project

  • Clone project from Github
  • Install prerequisities (eas-cli, expo-cli, project dependencies)
  • Run the command

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reviewIssue is ready to be reviewed by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions