Categories
Mastering Development

Heroku – Cant find main server module file

I am trying to deploy a simple Express/Node backend to Heroku, however it keep giving me the error that it cant find my main server module, “can’t find module server.js”, but it is right there in the root directory. My main server file: const express = require(“express”); const connectDB = require(“./config/db”);`enter code here` const app […]