Back

Downgrade SDK warning

  • 0
  • React Native
KeyStone
1 Sep, 2024, 17:14

I was just starting to work on an app and after installing the react native appwrite package I am getting this warning:

Warning: The current SDK is built for Appwrite 1.6.0. However, the current Appwrite server version is 1.5.10. Please downgrade your SDK to match the Appwrite version: https://appwrite.io/docs/sdks

How would I go about downgrading the SDK, and what version should I use? When I installed it I did not specify any version so I don't even know which version I am on, so any help on figuring this all out would be great

TL;DR
Developers looking to downgrade their Appwrite SDK due to version mismatch. To resolve this, uninstall the current SDK version and install the correct one by running `npm i react-native-appwrite@0.4.0`. Remove the previous Appwrite dependency in your package.json. If unsure of the current SDK version, check the warnings thrown by the package installation.
Asutosh
1 Sep, 2024, 17:48

hey I assume that you are using cloud, and its in version 1.5

Asutosh
1 Sep, 2024, 17:50

you can re install the correct appwrite sdk for react-native npm i react-native-appwrite@0.4.0

KeyStone
1 Sep, 2024, 17:51

Thanks! Do you know if I have to first uninstall my current SDK version or can I just go ahead and install this one?

Asutosh
1 Sep, 2024, 17:52

Go to your package json. and remove the appwrite dependency

Asutosh
1 Sep, 2024, 17:53

next install appwrite sdk again hitting npm i react-native-appwrite@0.4.0

Asutosh
1 Sep, 2024, 17:55

solved?

KeyStone
1 Sep, 2024, 17:56

I am not at my computer right now, but in a couple minutes I should be able to check

Asutosh
1 Sep, 2024, 17:57

Alrighty!

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more