
I created it with the usual npm init vue@latest

choosing all yes except JSX, Vitest and Cypress

Okay,

The problem persists even by removing "module": "ESNext"
from tsconfig.node.json
.
By the way, the app runs fine! The problem is with the IDE: I get no autocomplete and everything from appwrite is 'any' type

Ohh

It's interesting, because Appwrite has typescript

The error is only in the IDE

I know it has typescript, I remember it had it since 0.6 right?

That's why I was confused 🤔

Thanks a lot for the time you're taking to help, I appreciate it

I don't know since when, but yes they have

The project is brand new, I haven't changed any config of the originally generated ones

Okay, I've tested in my computer
In your tsconfig.app.json
add "moduleResolution": "node",
inside compilerOptions
like so:
{
"extends": "@vue/tsconfig/tsconfig.dom.json",
"include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
"exclude": ["src/**/__tests__/*"],
"compilerOptions": {
"moduleResolution": "node",
"composite": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
}
}
Let me know if it solves the problem

Unfortunately this didn't solve the problem, I wish I could give you more info but the error is exactly the same

I was able to have the same error as you

When adding this line in the tsconfig.app.json
file it changes.
Maybe you can try to restart your IDE?

wait sorry I just tried the tsconfig.node.js file! let me try the tsconfig.app.json one, makes sense

It worked, thanks a lot!! <:appwritefire:823999000330895380>

[Solved] Could not find a declaration file for module 'appwrite'

[SOLVED] Could not find a declaration file for module 'appwrite'

FYI, this was raised recently: https://github.com/appwrite/sdk-for-web/issues/54

Can someone help me with this? This all is for Vue. Can someone help me with nextjs. When i am using this, i am not able to use Client, Databases etc

it's pretty much the same if you're using TS. Just head to the tsconfig.json
file and change moduleResolution
to "node"


Okay thanks
Recommended threads
- Struggling with Sessions
Understanding check: createAnonymousSession() registers the session with the backend setSession() creates a cookie on the user’s computer(?) getSession(‘curr...
- MCP and VSCode Docs
I like your tools, but would like to set up Copilot in VSCode, but these docs don't offer that guide. Did I miss something? https://appwrite.io/docs/tooling/mcp
- How to set wildcard at custom doamin
For OAuth2 redirect, I have set the appwrite api endpoint as appwrite.example.com, and added the CANME in cloudfare where I bought the domain name. And I hosted...
