-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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 : Appwrite with typescript react app throws error #5706
Labels
bug
Something isn't working
Comments
I also having this issue with a fresh Vite react project |
I started a PR for this issue in the sdk repo |
Thank you for the PR @TristonWasik , we will look into it ASAP. |
I have left a comment there on the PR @TristonWasik |
Closing as a duplicate of appwrite/sdk-for-web#54 |
This was referenced Jul 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👟 Reproduction steps
getting warning messages, without any typescript autocomplete.
Could not find a declaration file for module 'appwrite'. 'node_modules/appwrite/dist/esm/sdk.js' implicitly has an 'any' type.
There are types at 'node_modules/appwrite/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'appwrite' library may need to update its package.json or typings.ts(7016)
👍 Expected behavior
resolve warning messages, so that typescript function can detect function details, like autocomplete
👎 Actual Behavior
Could not find a declaration file for module 'appwrite'. 'node_modules/appwrite/dist/esm/sdk.js' implicitly has an 'any' type.
There are types at 'node_modules/appwrite/types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'appwrite' library may need to update its package.json or typings.ts(7016)
warning messages, without function autocomplete exist in typescript.
🎲 Appwrite version
Version 1.3.x
💻 Operating system
Linux
🧱 Your Environment
using appwrite self hosting on ubuntu22.05 LTS
Linux notebook 5.19.0-43-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
docker image
package.json
👀 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: