I've built an app, also published it already. Now I want to make a small change to the app, but after starting Expo I get an error:
"Error: React Native is not installed. Please run npm install in your project directory.
Couldn't start project. Please fix the errors and restart the project."
Starting Expo (expo start) worked in the past. But starting Expo keeps failing with this error, even after running 'npm install'.
I've also tried 'expo build:android', but that also doesn't work.
All these commands are failing, also with other Expo built apps. Also an app I worked on yesterday.
What can I do to fix this?
Thanks in advance!
[edit]
I am using Expo 2.6.8. (which was a just available update)
Try updating nodejs
https://nodejs.org/en/download/
worked for me
Related
I have React Native project and when I try to run using npx react-native run-android I found some errors that said like this
A problem occurred configuring project ':react-native-vector-icons'.
Currently, I'm using React Native 0.55.4 and React Native Vector Icons 4.3.0
I try to re-install using npm uninstall and npm install again but turns out it's not solving the error. How can I solve this error? at first, I can run my project successfully but suddenly out of nowhere I cannot run it again because of this error.
Upgrading your gradle version might fix this issue
I just want to create my first project using React Native in iOS with expo.io. However, I got this error when I use this command "expo start" :
https://ibb.co/f2xsmpN
I already tried to reinstall and update Xcode, I tried to use sudo for permissions and I also tried this but it doesn't work:
https://www.gitmemory.com/issue/react-native-community/cli/948/583759785
For more information, you can check this video and you can see in the min 11:20 he uses this command line.
https://www.youtube.com/watch?v=7sJQBjn_cRQ
I am using MacOS Catalina 10.15.7
I faced the same problem . I uninstalled expo-cli and nodejs and installed again. It works for me.
I created a Bare expo app and tried to run react-native run-ios, I'm getting the following error:
Showing All Messages
Build input file cannot be found: '/Users/user/Library/Developer/Xcode/DerivedData/testing-fxkbjuawpoifdbcjtioxmqmmeybm/Build/Products/Debug-iphonesimulator/appname.app/appname'
I tried making a fresh app but it didn't work.
I also tried to re-build the ios/directory with:
react-native upgrade --legacy true
I tried downgrading my react-native version so I could use the above command but I ran into issues.
Edit:
Just for the record, the issue was that my computer's hard drive was almost full, and the app would not be able to compile completely. Yep, software engineering my friends...
Upgrade to Xcode 12
Use the non-legacy build system
This is insanely annoying. I have been working on a project for the past 1 week and absolutely no issue. All of a sudden, Expo decided to do this. It says "downloading javascript bundle" at 100%, yet it will not load my app. On my terminal it says
Finished building JavaScript bundle in 1319ms.
Running application on AOSP on IA Emulator.
I have reinstalled expo-cli and also expo on my emulator. Nothing works.
Please help. This is frustrating as I have been using expo for a while, with no issue at all. Normally when this happens I just restart my emulator and everything works fine. And then now....it is always stuck at "downloading javascript bundle"....
If I use my real phone, it says
Something went wrong. Could not load exp:/xxx.xxx.xx.exp.direct:80
I noticed this happened after installing expo-image-picker. Could this be the reason why? I uninstalled expo-image-picker but the issue is still here.
Solution 1:
This issue is because of any dependency that you have added into your project.
you can try removing last package that you have install.
Solution 2:
rm -rf node_modules
rm package-lock.json
npm start -- --reset-cache
npm install
Solution 3:
use yarn instead of npm, and always install the package using expo install your_package_name by this it will resolve version of package and install version which is compatible with expo
Intro
Hi there! I'm working on my first react-native app. After months of work, I am finally ready to deploy to Test Flight. I built the project in expo. Runs great on the expo simulator. Next step, run in Xcode. I encountered a few errors but managed to find my way. Until, I hit this error, which, I just cannot seem to get around.
What I have done:
1)Ejected ExpoKit
2)Run npm install
3)Run pod install in my ios directory
The Error:
Now, I am trying to compile in debug and release configurations but the build fails :(. Here is the error I am receiving
Not sure what to do. I have searched all around and can't seem to find a working solution... Any ideas??
Versions
React Native - 0.54.2
React Native CLI - 2.0.1
I solved my issue with these steps
update pod
install pod
removed node_modules and npm install
Not sure this will help anyone but it fixed my problem.