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

EAS project not configured. #1426

Closed
widjesh opened this issue Oct 7, 2022 · 23 comments
Closed

EAS project not configured. #1426

widjesh opened this issue Oct 7, 2022 · 23 comments
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@widjesh
Copy link

widjesh commented Oct 7, 2022

Build/Submit details page URL

No response

Summary

When I execute the following command on my local machine:
eas update --message "bbbb1124232c2e24aeea2de822541fbbe599e1c0" --branch "development"
Everything works as expected, but the same command is being triggered through my Circle CI pipeline, but on that platform I am getting the following response:
EAS project not configured.
? Existing EAS project found for @************/Satyam-Tours (id = e3cbfdf1-eb35-41fe-**********). Configure this project? › (Y/n)��

Since this is a Pipeline build I am not able to select Y or N.

Can someone help me resolve this issue ?
This worked fine for the last 3 months. Not sure what suddenly happened

Managed or bare?

Managed

Environment

✖ Dependency tree validation for expo-modules-autolinking failed. This validation is only available on Node 16+ / npm 8.
✖ Dependency tree validation for @expo/config-plugins failed. This validation is only available on Node 16+ / npm 8.
✖ Dependency tree validation for @expo/prebuild-config failed. This validation is only available on Node 16+ / npm 8.
✖ Dependency tree validation for @unimodules/core failed. This validation is only available on Node 16+ / npm 8.
✖ Dependency tree validation for @unimodules/react-native-adapter failed. This validation is only available on Node 16+ / npm 8.
✖ Dependency tree validation for react-native-unimodules failed. This validation is only available on Node 16+ / npm 8.
Some dependencies are incompatible with the installed expo package version:

  • @react-native-picker/picker - expected version: 2.4.2 - actual version installed: 2.4.4
  • expo-dev-client - expected version: ~1.3.0 - actual version installed: 1.2.1
  • expo-updates - expected version: ~0.14.6 - actual version installed: 0.14.5
  • react-native - expected version: 0.69.6 - actual version installed: 0.69.5
    Your project may not work correctly until you install the correct versions of the packages.
    To install the correct versions of these packages, please run: expo doctor --fix-dependencies,
    or install individual packages by running expo install [package-name ...]

Error output

No response

Reproducible demo or steps to reproduce from a blank project

Not sure how to answer this question.

@widjesh widjesh added the needs review Issue is ready to be reviewed by a maintainer label Oct 7, 2022
@parniekovvakoms
Copy link

parniekovvakoms commented Oct 9, 2022

The same problem. Everything was fine but after simple commit with only JS changes build has failed.
image

@ysrarff
Copy link

ysrarff commented Oct 9, 2022

I'm experiencing a similar issue as well although it is with the eas build command

The gitlab CI pipeline that was working a month ago is now suddenly failing a few days back (last checked) prompting the "EAS project not configured" error.

Here's my gitlab CI file:

image: node:alpine

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - .npm
    # or with yarn:
    #- .yarn

stages:
  - build
  - ship

before_script:
  - npm ci --cache .npm
  # or with yarn:
  #- yarn install --cache-folder .yarn

eas-build:
  stage: build
  only:
    - master
    - qa
  before_script:
    - apk add --no-cache bash
  script:
    - EXPO_TOKEN=$EXPO_TOKEN EAS_NO_VCS=1 npx eas-cli build --platform all --non-interactive

variables:
  EXPO_TOKEN: $EXPO_TOKEN

My eas.json file:

{
  "cli": {
    "version": ">= 0.57.0"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "android": {
        "gradleCommand": ":app:assembleDebug"
      },
      "ios": {
        "buildConfiguration": "Debug"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "android": {
        "buildType": "apk"
      }
    }
  },
  "submit": {
    "production": {
      "android": {
        "track": "production",
        "applicationId": "****"
      },
      "ios": {
        "appleId": "****",
        "ascAppId": "****",
        "sku": "****",
        "bundleIdentifier": "****"
      }
    }
  }
}

The error I am getting on my pipeline:
image

Hope @brentvatne could assist on this. Also I'm sorry if I'm latching on @widjesh 's issue as I thought it would be relevant - as from my pov it seems like it's the same root cause. I am fine submitting this as a separate issue if needed.

@mossypaul
Copy link

I'm having this same issue running on GitHub actions

@widjesh
Copy link
Author

widjesh commented Oct 10, 2022

Hey Guys,
I found a fix for this issue

Just make sure you add this in your app.config.js

extra: {
eas: {
projectId: <INSERT_YOUR_PROJECT_ID>
},
},

This should resolve the issue. Not sure what caused this to be honest.

Let me know should you need any more information.

@evenstay
Copy link

Hey Guys, I found a fix for this issue

Just make sure you add this in your app.config.js

extra: { eas: { projectId: <INSERT_YOUR_PROJECT_ID> }, },

This should resolve the issue. Not sure what caused this to be honest.

Let me know should you need any more information.

This helped me. Thank you @widjesh

@widjesh
Copy link
Author

widjesh commented Oct 10, 2022

Glad it worked for you.Good luck on your development

@Lester016
Copy link

Glad it worked for you.Good luck on your development

Where can I find my project id?

@ysrarff
Copy link

ysrarff commented Oct 11, 2022

Hey Guys, I found a fix for this issue

Just make sure you add this in your app.config.js

extra: { eas: { projectId: <INSERT_YOUR_PROJECT_ID> }, },

This should resolve the issue. Not sure what caused this to be honest.

Let me know should you need any more information.

I can confirm that this is a working solution for me too. I had to extend the values from my app.json and put in the app.config.js file and fill in the slug for my project to make it work. Thanks @widjesh !

Here's a snippet of a working example (app.config.js):

module.exports = ({ config }) => ({
  name: config.name,
  slug: "SLUG_FROM_EAS",
  extra: {
    eas: {
      projectId: "PROJECT_ID_FROM_EAS"
    }
  },
});

@widjesh
Copy link
Author

widjesh commented Oct 11, 2022

Where can I find my project id?

@Lester016 Find your project ID in your expo web portal (www.expo.dev).
Let me know should you need more clarification this.

@juanjorge
Copy link

Hey Guys, I found a fix for this issue
Just make sure you add this in your app.config.js
extra: { eas: { projectId: <INSERT_YOUR_PROJECT_ID> }, },
This should resolve the issue. Not sure what caused this to be honest.
Let me know should you need any more information.

I can confirm that this is a working solution for me too. I had to extend the values from my app.json and put in the app.config.js file and fill in the slug for my project to make it work. Thanks @widjesh !

Here's a snippet of a working example (app.config.js):

module.exports = ({ config }) => ({
  name: config.name,
  slug: "SLUG_FROM_EAS",
  extra: {
    eas: {
      projectId: "PROJECT_ID_FROM_EAS"
    }
  },
});

this fixed me out, thank you !

@dsokal
Copy link
Contributor

dsokal commented Oct 13, 2022

You should run eas init locally and commit the changes produced by the command. This will fix the issue for you.

@dsokal dsokal closed this as completed Oct 13, 2022
@widjesh
Copy link
Author

widjesh commented Oct 13, 2022

@dsokal The eas was already initialized at the time this issue occurred. I have added the fix that worked for me and for some of the other devs. Thank you

@parniekovvakoms
Copy link

Resolved by steps:

  • yarn global add eas-cli (update to last version)
  • module.exports = ({ config }) => ({
    name: config.name,
    slug: "SLUG_FROM_EAS",
    extra: {
    eas: {
    projectId: "PROJECT_ID_FROM_EAS"
    }
    },
    });

@kyle-lam
Copy link

I'm experiencing a similar issue as well although it is with the eas build command

The gitlab CI pipeline that was working a month ago is now suddenly failing a few days back (last checked) prompting the "EAS project not configured" error.

Here's my gitlab CI file:

image: node:alpine

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - .npm
    # or with yarn:
    #- .yarn

stages:
  - build
  - ship

before_script:
  - npm ci --cache .npm
  # or with yarn:
  #- yarn install --cache-folder .yarn

eas-build:
  stage: build
  only:
    - master
    - qa
  before_script:
    - apk add --no-cache bash
  script:
    - EXPO_TOKEN=$EXPO_TOKEN EAS_NO_VCS=1 npx eas-cli build --platform all --non-interactive

variables:
  EXPO_TOKEN: $EXPO_TOKEN

My eas.json file:

{
  "cli": {
    "version": ">= 0.57.0"
  },
  "build": {
    "development": {
      "distribution": "internal",
      "android": {
        "gradleCommand": ":app:assembleDebug"
      },
      "ios": {
        "buildConfiguration": "Debug"
      }
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "android": {
        "buildType": "apk"
      }
    }
  },
  "submit": {
    "production": {
      "android": {
        "track": "production",
        "applicationId": "****"
      },
      "ios": {
        "appleId": "****",
        "ascAppId": "****",
        "sku": "****",
        "bundleIdentifier": "****"
      }
    }
  }
}

The error I am getting on my pipeline: image

Hope @brentvatne could assist on this. Also I'm sorry if I'm latching on @widjesh 's issue as I thought it would be relevant - as from my pov it seems like it's the same root cause. I am fine submitting this as a separate issue if needed.

any update on what changed causing this break?

@Musigwa
Copy link

Musigwa commented Dec 20, 2022

Where can I find my project id?

Screenshot 2022-12-20 at 7 15 45 PM

You can log in to expo.dev with your account credentials and check out the target project.
Then, in the "Overview" section, the highlighted item on the screenshot should be your projectId.

@Musigwa
Copy link

Musigwa commented Dec 20, 2022

Hey Guys, I found a fix for this issue
Just make sure you add this in your app.config.js
extra: { eas: { projectId: <INSERT_YOUR_PROJECT_ID> }, },
This should resolve the issue. Not sure what caused this to be honest.
Let me know should you need any more information.

I can confirm that this is a working solution for me too. I had to extend the values from my app.json and put in the app.config.js file and fill in the slug for my project to make it work. Thanks @widjesh !

Here's a snippet of a working example (app.config.js):

module.exports = ({ config }) => ({
  name: config.name,
  slug: "SLUG_FROM_EAS",
  extra: {
    eas: {
      projectId: "PROJECT_ID_FROM_EAS"
    }
  },
});

Some have app.config.js or app.json. Either of which works well when you add the recommended snippet by @dsokal

@BrandonMathis
Copy link

I also ran into this issue very recently.

The eas update command worked fine locally but would fail in CircleCI with the following message

Error: Project config: Slug for project identified by "extra.eas.projectId" (my.app.slug) does not match the "slug" field (project).
     Learn more: https://expo.fyi/eas-project-id

Not sure how this is happening but @juanjorge suggestion fixed this for me

Please consider re-opening this issue. The FYI article this error links to is quite unhelpful the the solution is very non-intuitive. Took me several hours to figure out what was happening. Seems that there is a bug in eas when it comes to extracting this slug out of wherever it is extracted from.

@Maysfeak
Copy link

Does anyone already figure out how this can be fix i also ran into this issue
Linking local project to EAS project id
Error: No config exists

@henrymoulton
Copy link

henrymoulton commented Apr 6, 2023

Also getting this issue on GitHub Actions but weirdly not locally:

image

my stuff(1)

Part of my config has:

    "name": "Name",
    "slug": "name",
    "extra": {
      "eas": {
        "projectId": "id"
      }
    },

@henrymoulton
Copy link

@jonsamp @byCedric @dsokal can this be re-opened?

@dsokal
Copy link
Contributor

dsokal commented Apr 7, 2023

@henrymoulton can you please open a new issue with all the details? My intuition tells me this is not related to the original issue. It'd be super helpful if you could take new screenshots with more details visible. In particular, could you expand "Run eas update..." from:
s

@henrymoulton
Copy link

@dsokal thanks for the reply, I've refiled #1779

@moosthuizen42
Copy link

Just in case this helps anyone, remember to specify the directory if you are working in a monorepo (ie. if your Expo project root is not the same as your repository's root). This issue, albeit silly, will result in the same symptoms.

Changing

- name: 📦 Install dependencies
  run: yarn install

- name: 🚀 Build app
  run: eas build -e preview -p android --non-interactive

to

- name: 📦 Install dependencies
  working-directory: ./app
  run: yarn install

- name: 🚀 Build app
  working-directory: ./app
  run: eas build -e preview -p android --non-interactive

was the solution for us.

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