
Hello, I can't run the function in appwrite.
I searched the forum and have tried to insert type : module
in package.json
. But I still can't get the function to work.
TypeScript
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'node-appwrite' imported from /usr/local/server/src/function/index.js
at new NodeError (node:internal/errors:372:5)
at packageResolve (node:internal/modules/esm/resolve:910:9)
at moduleResolve (node:internal/modules/esm/resolve:959:20)
at defaultResolve (node:internal/modules/esm/resolve:1176:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:605:30)
I attached my folder structure, and how I imported the function.
Could you help me please.
TL;DR
Cannot find package 'node-appwrite' when trying to run a function in appwrite. Developers tried inserting `type : module` in `package.json` but still facing issues. Error message indicates package not found. Solution: Make sure 'node-appwrite' is installed in the project directory using npm or yarn.
Here's my package.json too
Recommended threads
- Permissions for bulk operation
Hi team, I have a question: “In the databases.createDocuments bulk API, can I set document-level permissions? If yes, how exactly should I include the permissio...
- hi I’m reaching out with an urgent req...
hi I’m reaching out with an urgent request regarding my account. My organization’s access has been restricted due to a $90 unpaid invoice, and I’m currently s...
- Resource limit
I am getting resource limit errors even tho i didnt exceeded
