I am trying to get started with appwrite + react&typescript, But having big problems with getting going basically I am encountering THe same issue as in this https://github.com/appwrite/sdk-for-web/issues/54
Apparently there is a workaround in there and I have tried it, but it does not resolve the problem, (I am instead getting a diffrent error) Cannot find name 'Account'. Did you mean 'account'?ts(2552) appwrite.ts(9, 13): 'account' is declared here.
Any idea how to resolve this, or implementing a fix for my "new" problem?
what's your code?
Cannot find name 'Account'. Did you mean 'account'?
Right now I am trying to start with this https://github.com/appwrite/demos-for-react/tree/master/example-auth
To test and learn the auth
and you installed the dependencies using the package.json in that repo?
So basically i Have just done create vite npm add appwrite npm install
yup
actually here isn't one..
yeahj it is just adding appwrite in the getting started section of the readme
can you try restarting your IDE?
Did it now , also previously, no change
is this your exact code? https://github.com/appwrite/demos-for-react/blob/master/example-auth/src/appwrite.ts
Though to start, I did get the error describedin the linked github issue, I then tried both the workarounds listed in the issue, ie. modifying the exports for appwrite and also, the change moduleResolution
I am an idiot, somehow i was missing the last line of the file
export default client;
so with the fix from github issue + the actual correct code it works :-p
Thank you very much 🙂
[SOLVED] Cannot find name 'Account'. Did you mean 'account'?
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...