Deployment failed :issue Cannot find module

Build successful :tada:

Deploying…

Running ‘node run start’

node:internal/modules/cjs/loader:1252

throw err;

^

Error: Cannot find module ‘/opt/render/project/src/run’

at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)

at Function._load (node:internal/modules/cjs/loader:1075:27)

at TracingChannel.traceSync (node:diagnostics_channel:322:14)

at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)

at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5)

at node:internal/main/run_main_module:36:49 {

code: ‘MODULE_NOT_FOUND’,

requireStack: Node.js v22.12.0
Exited with status 1

my script
“scripts”: {
“server”: “nodemon backend/server.js”,
“start”: “node backend/server.js”,
“build”: “npm install && npm install --prefix frontend && npm run build --prefix frontend”
},

my my directory is like
/chat-app
/frontend
/backend
server.js
package.json

server.js is inside backend but package,json is outside along with backend and frontend folder

can you help me in deployment issue

  • node run start tries to execute a file named run.js with a parameter of start
  • npm run start executes the scripts: start: defined value in package.json