0

When I deploy I get the error Cannot find module '../../models/User' but my solution works fine locally. here is a pic of my console console log of errors and a link to the repo https://github.com/No-MyNameIs/trashalbums

I understand similar questions have been presented and I worked through those solutions before presented and I tried working through those below with no luck. Any help would be appreciated.
Heroku deploy Error: Cannot find module - compilation Heroku Cannot find module console log of errors

Shirley
  • 11
  • 3

1 Answers1

0

The version of Node.js that will be used to run your application on Heroku, should also be defined in engines section of your package.json file.

For example:

"engines": {
    "node": "11.0.0",
},

docs: https://devcenter.heroku.com/articles/deploying-nodejs#specify-the-version-of-node

SuleymanSah
  • 17,153
  • 5
  • 33
  • 54