Rank 1: Thread
App uses react +TS + vite
Votes
1
Replies
17
Participants
Unknown
Messages
18
Rank 1: Thread
App uses react +TS + vite
Can you share your code?
Rank 1: Thread
Change this
import { account } from "../../appwrite";To this
import { account } from "appwrite";You'll also need initialize a client
Check this
Rank 1: Thread
I am exporting that from a file called appwrite.d.ts
Rank 1: Thread
from root folder
Yes
I see now, why you've added the d in the .d.ts
Rank 1: Thread
if I use .ts
Rank 1: Thread
this happens
Probably because it can't be the same name
Change it to appwriteConfig.ts and the import and re test
Rank 1: Thread
okay
Rank 1: Thread
Changed it but same as above
What error now?
Ohh
Yes,
For
vite any files most be inside the src foler
Move the appwriteConfig.ts into the src one
And change the login to
import { account } from "../appwriteConfig";Rank 1: Thread
Thanks its working