
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
- User (role: guests) missing scope (accou...
is this an expected behavior?
- Login server-side action (NextJS) not cr...
(for <@186656408450629633>) hello, so I created this login function: ```ts export async function logIn(email: string, password: string) { const account = new ...
- Array attribute
hi i have a question i'm making e commerce website where you can order some phones computers, i want to make collection which will contain attributes likes firs...
