The Expo SDK requires Expo to run - react-native

I'm running my project on expo. After running expo eject, I'm getting the following error:
The Expo SDK requires Expo to run
Even for a brand new project I'm getting this error and I cannot do anything with expo anymore.
I run :
expo init Project1
and then going inside the Project1 direcotory and run:
expo start // and then click 'a' for running project on android emulator.
and emulator screen shows this error.

If you have logged into the command line on your computer, log out and try reloading the app. Otherwise reinstall expo and try again.

Related

"New update available, downloading..." on Expo

After opening my React Native project in Expo, I get a "New update available, downloading..." infinite loading on the Android emulator.
I tried restarting the server and restarting the emulator, expecting to see the actual content of my React Native application.
I managed to solve this problem by following these steps:
Stop the server.
Uninstall Expo on Android emulator.
Run npm start.
Reopen the application on Android emulator.

npx expo run:android -> CommandError: No development build (<package>) for this project is installed

After running npx expo run:android once, the app was pushed to the device and the app started up.
I then uninstalled the app on the device and then when I run npx expo run:android once again I get the error:
CommandError: No development build (<package-name>) for this project is installed. Please make and install a development build on the device first.
Learn more: https://docs.expo.dev/development/build/
I started another dummy project with another package name and the same thing can be reproduced after uninstalling once.
The built app is not installing once again on the Android device and then starting up.
The docs referenced in the error states https://docs.expo.dev/development/build/#locally-with-xcode-and-android-studio the following:
If you are comfortable setting up Xcode, Android Studio, and related dependencies, you can build and distribute your app the same as any other iOS or Android app.
The npx expo run commands will create a new build, install it on to your emulator or device, and start running it.
Not sure what I am doing wrong. Any help is appreciated.

how to open / continue expo project in another device with github

I'm pretty new to the expo and developing a mobile app, currently I'm using expo dan react native
I've built an app with the expo and I want to open it on another laptop, so I use GitHub to commit my work there
on the new laptop I already installed expo, node, vs, etc. i cloned the project and can't start it on my new laptop with "npm start"
it shows error like this
"Cannot determine which native SDK version your project uses because the module expo is not installed"
which I already checked on my cmd with expo --version
TL: DR how do I start the expo on another laptop with GitHub?
I already fixed the issue, the console recommended me to do yarn add expo , i already did the yarn add expo before writing this question and it didnt fix me thats why i thought there is something i need to do other than doing that
so after exploring expo documentation and found nothing , i just tried to do yarn add expo BUT in my cmd , not in my console on vs code
it worked perfectly for me and the strange thing is , i cant debug expo in my phone with LAN connection, which now i have to use tunnel connection for this to work where in my old computer i use the LAN connection perfectly fine
TLDR : do yarn add expo in cmd not in vs code console
Did you already clone your repo to your new machine?
If not you should download your code to your new laptop.
Next you will have to cd to the directory of your app in your terminal.
Afterwards you’ll have to run
expo install
And after this is done you can run the following command (still in your app folder)
expo start

Cannot open my new react-native app in emulator

I am a beginner in React-native
So i tried to start react-native.. I went to so many youtube tutorials and udemy courses..
At last i set up mu native environment.. start react-native
First i went on Getting Started React-Native site..
then i init awesomeproject to my local storage..
then run react-native run-android..
Emulator displayed correct output..
so i tried to do more projects and tried to learn react-native
so i init new project called "ChatApp"
using
react-native init ChatApp
project was successfully installed.
So again i tried to
cd ChatApp
then
react-native run-android
But still i get that old "awesomeapp"
I dont no what to do
I deleted chache memory and app in the emulator and i deleted sdk in android studio after that i again try to run the command still i get that older app..
I guess you meant cd ChatApp.
Otherwise, every new project you will create with the react-native init command will be exactly the same! If you made some modifications but the UI doesn't update, be sure that there is no other react-native instances running.

Xcode can't load ejected and published expo app

I have run expo publish and gotten the URL for my offline app, and then run expo eject to ExpoKit. However, when I try to run the project in the xcworkspace in Xcode, The simulator reads: "There was a problem loading the requested app", shows a snippet of the URL it was checking, and says that I need to be serving my project on Expo CLI.
Is there some step I’m missing? I have tried doing expo publish and then expo eject several times, and every time it tells me I still need to be serving my project through Expo CLI.
Also, I do not have an Apple Developer Account, which is why I am going through ExpoKit.