I need to use Vanilla Javascript to sign in user and also createJwt(). I have added the cdn script to use the appwrite in my scripts Tag as required, however, I am getting error that Client, Account, etc are not found.
Also I can't use import... In Vanila Javascript (not in a node environment)
I'm the TypeScript lover and hates using vanilla JS for many reasons, but it's required in this case.
@Moderator
It's not needed to ping all the moderators 😅
I think adding this like to the start of the code should solve the issue:
import { Client, Account } from 'appwrite';
Recommended threads
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Rate Limit of project
AppwriteException: Rate limit for the current endpoint has been exceeded. Please try again after some time. So , how much time I have to wait and why does it h...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...