appwrite / sdk-for-web

[READ-ONLY] Official Appwrite Web SDK ๐Ÿงก
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
271 stars 58 forks source link

๐Ÿ› Bug Report: Module appwrite has no member Appwrite #50

Closed sannanansari closed 1 year ago

sannanansari commented 1 year ago

While installing the appwrite in angular, I am getting following error

Module '"appwrite"' has no exported member 'Appwrite'.ts(2305)

sannanansari commented 1 year ago

can work on this issue?

stnguyen90 commented 1 year ago

@sannanansari, thanks for creating this issue! ๐Ÿ™๐Ÿผ

I don't think you should be importing Appwrite. Where do you see that you need to import Appwrite?

sannanansari commented 1 year ago

@stnguyen90 Thanks. currently for importing appwrite we use import { Client } from 'Appwite'

with respect to angular @stnguyen90.

It better we use Appwrite inplace of Client

I don't think you should be importing Appwrite. Where do you see that you need to import Appwrite?

Here:- https://github.com/appwrite/demo-todo-with-angular/blob/main/src/app/helpers/api.ts

stnguyen90 commented 1 year ago

@sannanansari, that code sample you linked uses an old SDK version, which exports Appwrite. If you want, you can use an alias like:

import { Client as Appwrite } from 'appwrite';
stnguyen90 commented 1 year ago

@sannanansari, is there anything else or can this be closed?