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
- Hey ,why this issue
hey , why this issue Access to fetch at 'https://cloud.appwrite.io/v1/databases/68dd166…/collections/met…22%2C"attribute"%3A"searchterm"%2C"values"%3A%5B"d7"%...
- Issue with unarchiving a project
I have a total of 2 projects on my appwrite account and the dashboard still shows one of them as archived and won't let me unarchive it. My mail id is rushilse...
- Custom Domain with CNAME on Vercel Treat...
Hi Appwrite team, I’m trying to set up a custom domain for my Appwrite project. My domain is hosted on Vercel, and I’ve already added the required CNAME record...
