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
- login backend and frontend
I'm using Remix, as my Backend (node). and react on my frontend. Until now, i did SSR login. saved the secret.. and it's fine. For many simpler requests i wish...
- Stuck in Readonly Mode After Pro Subscri...
Hello team, I really need some urgent help. I recently resubscribed to the Pro plan hoping to get back into a project I created a while ago, but I'm still unab...
- Missing C++ libstdc library in Python fu...
I have a function running Python 3.12 which suddenly started dumping errors (as of today; it worked yesterday). I hadn't changed any code so I found this odd, b...
