-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 Bug Report: Not able to detect Appwrite Web SDK Types #54
Comments
@nimit2801 thanks for raising this issue! After googling a bit it seems like this might be a newer typescript config and we can get it to work if we update a few things in the sdk. Some additional reference: |
Possible solution which worked for meMy |
We should be able to fix the problem If we update the exports in our package.json to: "exports": {
".": {
"import": "./dist/esm/sdk.js",
"require": "./dist/cjs/sdk.js",
"types": "./types/index.d.ts"
},
"./package.json": "./package.json"
}, |
Thought for food |
Yup, exactly. Can I make a PR? |
The fix will be in the next release of the SDK.
Both? The problem was the newer TS config is incompatible with our SDK. |
馃憻 Reproduction steps
Step 1: Initialize a
Vite
ProjectRoot Cause
Because
"moduleResolution"
is set to"bundler"
in mytsconfig.json
Step 2: Install appwrite
Step 3: Import App
馃憤 Expected behavior
It should not throw an error!
馃憥 Actual Behavior
It throws an error
馃幉 Appwrite version
Version 0.10.x
馃捇 Operating system
Linux
馃П Your Environment
Nope!
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: