-
Notifications
You must be signed in to change notification settings - Fork 62
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’ll 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: