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
- SSL for SaaS
Hi everyone 👋 I'm building a website builder SaaS using Appwrite Cloud Functions My architecture relies on users connecting their own custom domains via CNAME...
- Cannot delete rows, deleted relationship...
I had defined a two-way relationship between 2 tables, then I deleted the relationship column I tried re-creating the column but I started to get errors about t...
- Github connections in Appwrite sites are...
The connection and repo list are displayed, and selecting a repo yields a success notification but also throws a console error. `Uncaught (in promise) Appwrite...