Rebuilding expo bundle with a different slug
Asked Answered
S

3

14

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?

Surcingle answered 20/9, 2022 at 19:41 Comment(0)
C
47

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.

Cormac answered 21/9, 2022 at 7:59 Comment(2)
This is the wrong answer! Do not do this. The project id is needed for notifications and such. It was added to app.json for a reason either manually or by running init. The right answer is to ensure your slug in app.json matches the project slug in Expo.Equiponderate
Ok, what if you really need to change the slug, how do you do that? @EquiponderateDaltondaltonism
B
5

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

enter image description here

Bin answered 16/4, 2023 at 14:50 Comment(0)
M
2

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.

Mesosphere answered 22/2, 2024 at 22:30 Comment(1)
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.