Error: Cannot find module '/opt/render/project/src/start'

I have added log streams but still I am getting this error.

My package.json file is:
“name”: “collectique”,
“version”: “1.0.0”,
“description”: “ecommerce app for retro and vintage products”,
“main”: “server.js”,
“engines”: {
“node”: “>=20.9.0 <21.0.0”
“scripts”: {
“start”: “node backend/server.js”,
“server”: “nodemon backend/server.js”,
“seed”: “node backend/seeder”,
“clear”: “node backend/seeder -d”,
“test”: “echo "Error: no test specified" && exit 1”,
“build”: “npm install && npm install --prefix frontend && npm run build --prefix frontend”
“author”: “Karthik Mohan”,
“license”: “ISC”,
“dependencies”: {
“bcryptjs”: “^2.4.3”,
“cookie-parser”: “^1.4.6”,
“dotenv”: “^16.3.1”,
“express”: “^4.18.2”,
“jsonwebtoken”: “^9.0.2”,
“mongoose”: “^7.5.3”,
“multer”: “^1.4.5-lts.1”,
“razorpay”: “^2.9.2”
“devDependencies”: {
“nodemon”: “^3.0.1”

1 Like

Hey, check what you used as your Root Directory in Render

Thank you. It worked.

1 Like

Am glad my method worked for you. Enjoy your day

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.