Back

TypeScript support?

  • 0
  • Web
ZachHandley
29 Jul, 2023, 20:06

Hey, I installed Appwrite via npm install appwrite and it is telling me there's a type error in the sdk being any, how can I fix this?

TL;DR
The user is experiencing an issue with TypeScript support in their IDE. Restarting the IDE seems to resolve the issue. Another suggestion is to install/reinstall the necessary dependencies. The user also mentions an error with the `sdk` being assigned as `any`. To fix this, they can try updating the versions while working with npm or provide the error message for further assistance.
joeyouss
29 Jul, 2023, 20:35

I tried installing rn and seems to be working for me, can you copy paste error message once? Also, maybe update versions while working with npm?

Drake
29 Jul, 2023, 20:38

Or restart your IDE?

ZachHandley
29 Jul, 2023, 21:31

weird, I restarted and it ended up working

ZachHandley
29 Jul, 2023, 21:31

no reason associated I duno

Drake
29 Jul, 2023, 21:41

Sometimes IDEs don't detect updated dependencies so restarting it forces it to recheck dependencies

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