Ige FadeleOriginal post
Rank 1: Thread
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.
Summary
Solution: To utilize Appwrite in Vanilla JavaScript, you can solve the issue by directly including the Appwrite SDK from a CDN link without importing specific modules. This approach will allow you to access functionalities like Client and Account without encountering 'module not found' errors. Additionally, refrain from using import statements in Vanilla JavaScript as they are not supported outside a Node environment.