/usr/local/src/server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25)
at require (node:internal/modules/cjs/helpers:93:18)
at /usr/local/src/server.js:55:28
at processTicksAndRejections (node:internal/process/task_queues:96:5)
any solution to this problem
Summary
User is having trouble executing a function. The problem seems to be related to the version of the Appwrite CLI they are using. The suggested solution is to use version 2.0.2 of the CLI instead of version 4.1.0. Additionally, it is recommended to read the Readme file to ensure you are using the correct version. Another potential issue could be with the way the code was archived for upload. If not using git, it is recommended to use the Appwrite CLI. The error message suggests that a module cannot be found, and provides a stack trace. No solution is mentioned for this specific error.
Drake
Oct 4, 2023, 02:11
Something may be wrong with the way you archived your code for upload. If you're not using git, I highly recommend using the Appwrite CLI
MH7
Rank 2: Process
Oct 4, 2023, 13:13
I use CLI appwrite, with nodejs. It might have something to do with it because I use the previous version of appwrite.
Drake
Oct 4, 2023, 16:44
What version of the CLI?
Was this function created after upgrading to 1.4?
MH7
Rank 2: Process
Oct 4, 2023, 21:47
I have the version 1.3.4 and I have not updated
Drake
Oct 4, 2023, 22:23
What version of the appwrite CLI do you have?
MH7
Rank 2: Process
Oct 4, 2023, 23:48
I have the version 4.1.0
Drake
Oct 5, 2023, 01:12
Version 4.1.0 of the CLI is meant for Appwrite 1.4. Since you're on 1.3.4, you should use version 2.0.2 of the CLI. Always make sure you read the Readme to see what version you should be on.