No such file or directory error (node js)


Showing this error after deployment
package.json

{
“name”: “ecommerce”,
“version”: “1.0.0”,
“description”: “”,
“main”: “index.js”,
“scripts”: {
“test”: “echo "Error: no test specified" && exit 1”,
“start”: “nodemon index.js”,
“build”:“npm i”
},
“author”: “abdul0398”,
“license”: “ISC”,
“dependencies”: {
“body-parser”: “^1.20.2”,
“connect-flash”: “^0.1.1”,
“connect-mongo”: “^5.0.0”,
“cookie-parser”: “^1.4.6”,
“dotenv”: “^16.0.3”,
“ejs”: “^3.1.9”,
“ejs-mate”: “^4.0.0”,
“express”: “^4.18.2”,
“express-session”: “^1.17.3”,
“joi”: “^17.9.1”,
“method-override”: “^3.0.0”,
“mongoose”: “^7.0.2”,
“nodemon”: “^2.0.22”,
“passport”: “^0.6.0”,
“passport-local”: “^1.0.0”,
“passport-local-mongoose”: “^8.0.0”,
“path”: “^0.12.7”,
“razorpay”: “^2.8.6”
}
}

Hey,

Ensure that the file you intend to import is located in the correct directory and verify the file name’s case sensitivity.

Regards.
Jérémy, Render Support

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