Skip to content

Cannot read properties of undefined (reading 'projectId') #2920

Description

@labspc

Summary

I am trying to link an existing Expo project using EAS, but during the EAS initialization, it cannot find the project ID. In fact, the ID has already been written in the app.json.

Image

Image

Image

What platform(s) does this occur on?

No response

SDK Version

"expo": "52.0.33",

Environment

expo-env-info 1.2.2 environment info:
    System:
      OS: macOS 15.1.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 23.7.0 - /opt/homebrew/bin/node
      Yarn: 1.22.22 - /usr/local/bin/yarn
      npm: 10.9.2 - /opt/homebrew/bin/npm
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    IDEs:
      Android Studio: 2024.2 AI-242.23726.103.2422.13016713
      Xcode: /undefined - /usr/bin/xcodebuild
    npmPackages:
      expo: 52.0.33 => 52.0.33 
      expo-router: 4.0.17 => 4.0.17 
      react: 18.3.1 => 18.3.1 
      react-dom: 18.3.1 => 18.3.1 
      react-native: 0.76.7 => 0.76.7 
      react-native-web: ^0.19.13 => 0.19.13 
    npmGlobalPackages:
      eas-cli: 15.0.12
      expo-cli: 6.3.10
    Expo Workflow: managed

Minimal reproducible example

{
  "expo": {
    "name": "logi",
    "slug": "logi",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "logi-linking",
    "userInterfaceStyle": "automatic",
    "newArchEnabled": true,
    "owner": "labspc",
    "extra": {
      "router": {
        "origin": false
      },
      "eas": {
        "projectId": "your-projectId"
      }
    },
    "android": {
      "package": "com.labspc.logi",
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/icon.png",
        "backgroundColor": "#ffffff"
      }
    },
    "ios": {
      "supportsTablet": false,
      "bundleIdentifier": "com.labspc.logi"
    },
    "web": {
      "bundler": "metro",
      "output": "single",
      "favicon": "./assets/images/favicon.png"
    },
    "plugins": [
      "expo-router"
    ],
    "experiments": {
      "typedRoutes": true
    }
  }
}
{
  "cli": {
    "version": ">= 5.9.1",
    "appVersionSource": "local"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal",
      "android": {
        "buildType": "apk"
      }
    },
    "production": {
      "android": {
        "buildType": "app-bundle"
      }
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions