Typescript Error when importing `appwrite`: /appwrite/dist/esm/sdk.js' implicitly has an 'any' type.
- 0
- Web
Hey guys! having a typescript issue in the web sdk (tried in both a new React and Vue project). This was also attached to the error:
There are types at '.../appwrite-project/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)"
so, i checked out the appwrite/package.json, it seems like this "exports" field is causing some issues with ts.
"exports": {
".": {
"import": "./dist/esm/sdk.js",
"require": "./dist/cjs/sdk.js"
},
"./package.json": "./package.json"
},
Any help would be greatly appreciated!
should i submit a bug-report in the repo?
No, try searching <#1072905050399191082> . This should have been answered already
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...