An error while deploying to Heroku code=H10

I have looked through similar topics and have so far been unable to resolve my deployment issue. when I’ve deployed it I get an application error. tried to delete it and deploy it again but nothing happened.
But local deployment is working properly.


  "name": "ITP_Backend",
  "version": "1.0.0",
  "description": "",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "body-parser": "^1.19.0",
    "concurrently": "^6.2.1",
    "cors": "^2.8.5",
    "dotenv": "^14.3.2",
    "express": "^4.17.1",
    "fs": "0.0.1-security",
    "mongoose": "^6.0.4",
    "multer": "^1.4.3",
    "nodemon": "^2.0.15",
    "pdfkit": "^0.12.3",
    "react-file-base64": "^1.0.3"

GitHub - GitHub - RavinduOnline/ITP-Backend

@BenGitter @chinedu16 Can you please help with this?

Going to hazard a guess here that you develop on Windows.

What you have going on here is a case sensitivity error. Essentially, Heroku is (I believe) running your application in a Unix environment. Your import looks for the Models directory, but you actually have a models directory. On Windows, this doesn’t always make a difference. But on Unix based OSes, it does. Models and models are two different folders.

Update your require statements and you should be good to go. :grin:

1 Like

I’m using MacBook @nhcarrigan thanks for the solution :hugs:

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