I installed appwrite in the project I am working on and while using it for the first time it displays an error: import conf from '@/conf/config' import {Client, Account, ID} from 'appwrite'
Errors: 1-> [{ "resource": "----------/startingwithappwrite/src/appwrite/config.ts", "owner": "typescript", "code": "7016", "severity": 8, "message": "Could not find a declaration file for module 'appwrite'. 'c:/Users/ASUS/Desktop/Project/startingwithappwrite/node_modules/appwrite/dist/esm/sdk.js' implicitly has an 'any' type.\n There are types at 'c:/Users/ASUS/Desktop/Project/startingwithappwrite/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.", "source": "ts", "startLineNumber": 2, "startColumn": 35, "endLineNumber": 2, "endColumn": 45 }]
In your tsconfig, change module resolution to node
OH!<:appwritefire:823999000330895380> Thank you
It was wonderful, I sent over an hour finding solution and booom!
[SOLVED] Error while getting Started with Next js and appwrite
Recommended threads
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...