Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
posidron opened this issue Dec 30, 2024 · 1 comment
Closed

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

posidron opened this issue Dec 30, 2024 · 1 comment
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@posidron
Copy link

Build/Submit details page URL

No response

Summary

 npx eas build

✔ Select platform › iOS
✔ Generated eas.json. Learn more
EAS project not configured.
✔ Existing EAS project found for @posidron/foobar (id = xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx). Configure this project? … yes
✖ Linking local project to EAS project  xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx
Cannot read properties of undefined (reading 'projectId')
    Error: build command failed

Managed or bare?

Managed

Environment

npx expo-env-info
Need to install the following packages:
[email protected]
Ok to proceed? (y) y


  expo-env-info 1.2.1 environment info:
    System:
      OS: macOS 15.3
      Shell: 3.7.1 - /opt/homebrew/bin/fish
    Binaries:
      Node: 23.5.0 - /opt/homebrew/bin/node
      Yarn: 1.22.22 - /opt/homebrew/bin/yarn
      npm: 11.0.0 - /opt/homebrew/bin/npm
      Watchman: 2024.12.02.00 - /opt/homebrew/bin/watchman
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/lib/ruby/gems/3.1.0/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
    IDEs:
      Android Studio: 2023.1 AI-231.9392.1.2311.11330709
      Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
    npmPackages:
      expo: ~52.0.23 => 52.0.23
      expo-router: ~4.0.15 => 4.0.15
      react: 18.3.1 => 18.3.1
      react-dom: 18.3.1 => 18.3.1
      react-native: 0.76.5 => 0.76.5
      react-native-web: ~0.19.13 => 0.19.13
    npmGlobalPackages:
      eas-cli: 14.2.0
    Expo Workflow: managed

Error output

Cannot read properties of undefined (reading 'projectId')

Reproducible demo or steps to reproduce from a blank project

{
  "expo": {
    "name": "foobar",
    "slug": "foobar",
    "version": "1.0.0",
    "orientation": "portrait",
    "icon": "./assets/images/icon.png",
    "scheme": "myapp",
    "userInterfaceStyle": "automatic",
    "splash": {
      "backgroundColor": "#ffffff"
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "supportsTablet": true,
      "infoPlist": {
        "NSCameraUsageDescription": "This app uses the camera to ..."
      }
    },
    "android": {
      "adaptiveIcon": {
        "foregroundImage": "./assets/images/adaptive-icon.png",
        "backgroundColor": "#ffffff"
      },
      "permissions": [
        "android.permission.CAMERA"
      ]
    },
    "web": {
      "bundler": "metro",
      "output": "static",
      "favicon": "./assets/images/favicon.png"
    },
    "plugins": [
      [
        "expo-camera",
        {
          "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera to ...."
        }
      ]
    ],
    "experiments": {
      "typedRoutes": true
    },
    "extra": {
      "newArchEnabled": true,
      "eas": {
        "projectId": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx"
      }
    }
  }
}
@posidron posidron added the needs review Issue is ready to be reviewed by a maintainer label Dec 30, 2024
@posidron
Copy link
Author

Darn. I had for some reason a app.config.ts which stayed unnoticed to my eyes and that one took precedence for eas and in that one projectId was not defined. Sorry for the noise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

1 participant