Home > OS >  Warning: Invalid version [email protected] for expo sdkVersion 43.0.0. Use [email protected]
Warning: Invalid version [email protected] for expo sdkVersion 43.0.0. Use [email protected]

Time:11-11

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.

CodePudding user response:

I just faced the same issue. Basically it's telling you should use a higher version of your react-native. I solved it just by updating it to the specified version.

npx react-native upgrade 0.64.3

More info here. Cheers,

CodePudding user response:

The same warning was showing in my console today and I fixed it by running
expo upgrade which upgraded only the version of react-native to 0.64.3.

Probably there is a quicker way to do it, something like running npx react-native upgrade 0.64.3, as suggested, but it did not work with me.

CodePudding user response:

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

  • Related