Wrong app slug read from expo.conf.js
Build/Submit details page URL
No response
Summary
Hi, I just tried to build a dev client using eas build --profile development. However I get the following error:
rror: Project config: Slug for project identified by "extra.eas.projectId" (xx-yyy-zzz) does not match the "slug" field (xx_yyy_zzz)..
I can confirm that the eas project matches with the one from the error message with the dashes. However, in my expo.conf.js the same slug is set with dashes so I don't know here the underscores come from.
I tried to rollback to 2.0.0 and with this version everything works fine. With version 2.6 or 2.7.1 the error occurs.
Managed or bare?
managed
Environment
expo-env-info 1.0.5 environment info:
System:
OS: Windows 10 10.0.19044
Binaries:
Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 8.5.5 - C:\Program Files\nodejs\npm.CMD
npmPackages:
expo: ^46.0.0 => 46.0.17
react: 18.0.0 => 18.0.0
react-native: 0.69.4 => 0.69.4
Expo Workflow: managed
Error output
npm run build:dev
build:dev eas build --profile development
√ Select platform » Android Error: Project config: Slug for project identified by "extra.eas.projectId" (cg-update-app) does not match the "slug" field (cg_update_app). Learn more: https://expo.fyi/eas-project-id
Reproducible demo or steps to reproduce from a blank project
Create a project with dashes in the slug?
You must have changed the slug at some point.
I cannot repro the issue:

Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue.
The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue.
A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own.
Resources
Common concerns
"I've only been able to reproduce it in private, proprietary code"
You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase.
"I didn't have time to create one"
That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template.
"You can reproduce it by yourself by creating a project and following these steps"
This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue.
Hey @Lerosen Have you tried Side by Side installation ?
https://github.com/flexbox/appjs-one#side-by-side-installation--appconfigjs
I was facing the same issue while running eas build. You probably changed the project slug but still have the old extra.eas.projectId in your app.json. Remove the projectId and when you build your project again, eas will generate a new projectId for you
I was facing the same issue while running
eas build. You probably changed the project slug but still have the oldextra.eas.projectIdin your app.json. Remove the projectId and when you build your project again, eas will generate a new projectId for you
Work for me, thank you :)