Need help to resolve this error: Error: Cannot find module '/opt/render/project/src/server.js
node:internal/modules/cjs/loader:1146
throw err;
^
Error: Cannot find module '/opt/render/project/src/server.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
this is my package.json:
{
"name": "mern-goal-app",
"version": "1.0.0",
"description": "GoalSetterAPP",
"main": "server.js",
"scripts": {
"start": "node backend/server.js",
"server": "nodemon backend/server.js",
"client": "npm start --prefix frontend",
"dev": "concurrently \"npm run server\" \"npm run client\""
},
"author": "",
"license": "ISC",
"dependencies": {
"bcryptjs": "^2.4.3",
"colors": "^1.4.0",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"express-async-handler": "^1.2.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.4.0"
},
"devDependencies": {
"concurrently": "^8.2.2",
"nodemon": "^3.1.0"
}
}
there is NO SRC FOLDER in my backend repo. I have also export my env variable but no success.