I changed the name of a React Native/Expo app and wanted to change the slug to go with it, but got the error "CombinedError: [GraphQL] Experience with name '@-----/newName' does not exist". Using the old slug, it still works. Is there any way to rebuild the app with a different slug?
Rebuilding expo bundle with a different slug
Asked Answered
Just had this same problem.
- Check your app.json and look for the field expo.extra.eas.projectId and delete it.
- Now try to run your build again, a new projectId will be generated.
This seems to have worked for me, hope it helps.
Ok, what if you really need to change the slug, how do you do that? @Equiponderate –
Daltondaltonism
NEW UPDATE
Goto app.json. Find slug name and "extra": { "eas": { "projectId": your previous ID } },
Change to new slug name and also new project ID
You can find your NEW slug name and Project ID here
What worked for me was creating a new project on Expo. You can go create one by clicking on All Projects ->
Make sure to match the slug of this new project to the one you specify in app.json and you should be good to go.
This is the right answer. If you have a project named
example-app
in Expo but your expo slug in app.json
is example
then it will fail. The above answer about removing the projectId
is not the right answer. –
Equiponderate © 2022 - 2025 — McMap. All rights reserved.
app.json
for a reason either manually or by runninginit
. The right answer is to ensure your slug inapp.json
matches the project slug in Expo. – Equiponderate