I am working on an expo project and everything is working fine, but I began to get a warning message when android is building as
Warning: Invalid version [email protected] for expo sdkVersion 43.0.0. Use [email protected]
The app is still running fine but I don't how to fix this error yet and I want to know if it won't cause an issue later.
Upgrading your Expo project to a new version of React Native requires updating the react-native , react , and expo package versions in your package.json file. Expo provides an upgrade command to handle upgrading these and any other known dependencies for you.
What is SDK version in Expo? The Expo SDK is a series of native libraries for each iOS and Android platform, and it allows JavaScript to access the system features of the device such as the camera, push notifications, local storage, contacts, and other hardware and operating system APIs.25-Jun-2021.
Checking the version To check the react-native version in your system, run the react-native -v command inside the terminal. This above command work on both mac and windows based operating systems. Similarly, you can also check the react-native version by opening a package. json file in your project.
I have tried to run npx react-native upgrade 0.64.3
but it didn't work, I got this error
info Fetching diff between v0.64.2 and v0.64.3... error Fetch request failed with status 404: 404: Not Found. error Failed to fetch diff for [email protected]. Maybe it's not released yet?
changing the version of react-native
manually in the package.json
and run expo install
worked for me
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With