Hey all, I've been building a little something for the cloud hackaton, but it seems like the latest appwrite package doesn't provide types for typescript, which causes tsc to fail compilation. Is there a simple way to solve this ?
Also, make sure you're using version 8.1.0
in case you're working against Appwrite cloud
as in the package version ?
Yes,
doing both does not solve the error (ps: version is 8.0.1, 8.1.0 does not exist)
Oh my bad I gave you the version for node
it should be version 10.1.0
What type of project you're working on? Vite+Vue, React?
vite+react error is:
There are types at '/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.```
And you've update the "moduleResolution": "node",
? and rerun it?
yes
Check if you have moduleResolution
in other tsconfig
files
damn yeah, there was a second one xD
thanks for the tip π
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...