falconZ
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. falconZ
I see this has already been answered and found the fix on Github https://github.com/appwrite/sdk-for-web/issues/54
Drake
[SOLVED] Cannot find Type Declarations on Vite
Recommended threads
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...