Error: Cannot find module '/usr/code-start/ ' Require stack:
- /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
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
I use CLI appwrite, with nodejs. It might have something to do with it because I use the previous version of appwrite.
What version of the CLI?
Was this function created after upgrading to 1.4?
I have the version 1.3.4 and I have not updated
What version of the appwrite CLI do you have?
I have the version 4.1.0
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.
Recommended threads
- Dotnet functions on cloud
I'm trying to deploy my .Net8 functions to my project on cloud.appwrite through the CLI. I'm getting this error.
- TablesDB can't be used in Appwrite Funct...
I have written a function (DART) and it won't deploy. Here is what I get : 2026-03-14T17:09:41.459693680Z Compiling ... 2026-03-14T17:09:42.915619217Z ../build...
- Local appwrite run functions --user-id n...
Hi, I'm running into an issue when testing Appwrite functions locally with user impersonation. I'm using a self-hosted Appwrite instance and running functions ...