App uses react +TS + vite
Can you share your code?
Change this
import { account } from "../../appwrite";
To this
import { account } from "appwrite";
You'll also need initialize a client Check this
I am exporting that from a file called appwrite.d.ts
from root folder
Yes
I see now, why you've added the d in the .d.ts
if I use .ts
this happens
Probably because it can't be the same name
Change it to appwriteConfig.ts and the import and re test
okay
Changed it but same as above
What error now?
Ohh Yes,
For <:vite:1007379819660595291> 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";
Thanks its working
Recommended threads
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...