
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.
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.

Here's my package.json too
Recommended threads
- Registering new flutter app
Hi, ive got an already build flutter app which works in development with appwrite. but with the built version i get an error that the client is not registered. ...
- Relationship opt-in?
Hi! I'm trying to understand opt-in relationship population. I'm listing rows as follows: `(...).listRows({ databaseId: this.databaseId, tableId: this.tableId, ...
- Appwrite messaging api error
```=== Push Notification Function Started === Endpoint: https://fra.cloud.appwrite.io/v1 Project: 6899062700398ffeae4f Database: threed-dating-db Notification f...
