
When trying to import appwrite client on a React Project with Vite i get the following error.
TypeScript
Could not find a declaration file for module 'appwrite'. '/home/***/project-dev/node_modules/appwrite/dist/esm/sdk.js' implicitly has an 'any' type.
There are types at '/home/***/project-dev/node_modules/appwrite/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'appwrite' library may need to update its package.json or typings.
TL;DR
The user was experiencing an error while trying to import the appwrite client on a React project with Vite. They received an error message stating that the declaration file for the module 'appwrite' could not be found. However, the user found a solution on the appwrite GitHub page (https://github.com/appwrite/sdk-for-web/issues/54).
Solution: The user found a fix for the issue on the appwrite GitHub page. They did not specifically mention what the fix was, so it would be necessary to visit the GitHub page for more information.
I see this has already been answered and found the fix on Github https://github.com/appwrite/sdk-for-web/issues/54

[SOLVED] Cannot find Type Declarations on Vite
Recommended threads
- login backend and frontend
I'm using Remix, as my Backend (node). and react on my frontend. Until now, i did SSR login. saved the secret.. and it's fine. For many simpler requests i wish...
- Stuck in Readonly Mode After Pro Subscri...
Hello team, I really need some urgent help. I recently resubscribed to the Pro plan hoping to get back into a project I created a while ago, but I'm still unab...
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
