I ran the command eas update:configure and now I want to run expo publish but I get this error:
"It seems like your project is configured for EAS Update. Please use 'eas update' instead."
So I'd like to revert my project back to normal so I can use expo publish
N/B: I don't want to use eas update
Thank you
I found out how to solve my problem. No command was needed.
You just need to delete runtimeVersion and updates.url from app.json as that is what is added when eas update:configure
Related
I've created a development build of an Expo app using EAS. Previously I would open the app in Expo Go by running npx expo start and scanning the Metro Bundler QR code.
Now, when I try to do the same thing, Expo Go asks whether I want to open the project in Expo Go or as a "Development Build". It works fine in Expo Go, but crashes immediately when I attempt to open the dev build. The error reads:
null is not an object (evaluating '_ReanimatedModule.default.createNode')
This error is suspiciously similar to one that I encountered earlier in development, which I resolved by downgrading to React Native version 0.69.6. I'm also encountering a second error that says "'main' has not been registered", but I suspect this is downstream of the first error.
I have the same issue when I try to run the app with npx expo start --dev-client.
Any ideas why I might be having this problem?
It sounds like you may have run expo prebuild (https://docs.expo.dev/workflow/prebuild/) which removes "main": "node_modules/expo/AppEntry.js", from app.json. Try to create a new expo app and look at it's app.json file.
When you run expo prebuild it changes a few things with your project (see "side effects" in the prebuild docs).
I'm actually working through some issues with that right now too. I thought I had to run prebuild but turns out I didn't have to. Ever since I ran it my app will not load via the dev-client way. I can however switch back to npx expo start (NOT npx expo start --dev-client, see the scripts section of app.json as that is also changed when prebuild is run).
Let me know if you are able to get your app to load after re-adding the main stuff to app.json.
Ps, are you by chance using react-native-google-mobile-ads?
I have the need to run a project from Expo Go without being connected to PC. We are developing an app that require GPS and needs to be tested in open field.
Before EAS became the standard to create projects i used
expo build:android
ad this created not only the apk, but uploaded the project to my account and i was able to start it from Expo Go projects section just like the app was installed on phisical device. That worked also fo iOS and was a great testing feature.
After i moved to EAS Build
eas build -p android --profile preview --clear-cache
my project inside Expo Go does not update anymore and its stucked at sdk 44 even if now i'm working (and creating builds) with sdk 46.
I went through the official documentation many times but i don't get how to make the app start from Expo Go (project sction) as i did before. Maybe i'm missing some configuration.
Thank you all for any kind reply.
Have a good day.
EDIT
I found the solution to this problem and now my builds are working and uploading to Expo Go.
Check out this information: https://github.com/expo/fyi/blob/main/eas-build-archive.md
Basically EAS Updates will not bundle anything inside your .gitignore, in my case it needed specific config files. Did a quick test by taking them off the .gitignore and now it's working. Will move to GitHub SECRETS in the future.
Hope that helps.
i run expo build:android but i am go to my build or install apk in my phone the app is close and show this error: Invalid application ID
My app.json
But honestly I've been broken my brain for hours on this and it doesn't make sense my appId is already in app.json but when I try to build my manifest doesn't show up...
My workflow details
Ty for your help 🙏
I found a solution that some googleServices.json was interfering with the build of the app!
I want to try running my react native app locally but against my staging and/or production server. I'm looking to do this by setting a release-channel variable when I run expo start. I hope this can test/foreshadow some performance in beta and production.
I tried the command expo start --release-channel staging and I got an error error: unknown option '--release-channel'
How can I set Constants.manifest.releaseChannel when I run expo start?
Environment variables don't exist explicitly, but you can utilize release channels to make that happen!
Say you have a workflow of releasing builds like this:
expo publish --release-channel staging-v1
For standalone apps:
Build your standalone app by running
expo build:ios --release-channel <your-channel>
expo build:android --release-channel <your-channel>
You can access the channel your release is published under with the releaseChannel field in the manifest object.
Constants.manifest.releaseChannel does NOT exist in dev mode. It does exist, however when you explicitly publish / build with it.
Here is a detailed description of this answer.
To those who also try to use environment within expo but for the web target,
My solution is to use cp to overwrite the prod configuration in prebuild script:
# fix --release-channel not available for web yet
cp -f src/config/env/staging.js src/config/env/prod.js
I also got tips from expo tips that the --release-channel feature is not available for web, this is the only way I have found so far.
react-native run-android --variant=release & react-native run-ios --configuration Release maybe would help :)
I am using this package https://github.com/evollu/react-native-fcm
I complete the installation process. The project is working. But every time I turn it on project. I am working ./gradlew clean on console. Other than that, I get the following error when I run
You can delete build folder, and recompile project again.