Heroku + Node: Cannot find module error

后端 未结 6 574
没有蜡笔的小新
没有蜡笔的小新 2020-12-13 09:10

My Node app is running fine locally, but has run into an error when deploying to Heroku. The app uses Sequelize in a /models folder, which contains index.

6条回答
  •  心在旅途
    2020-12-13 09:39

    I can't see the exact fix, but you can figure it out yourself by running heroku run bash to log into a Heroku instance, then run node to enter a REPL, and try requiring the paths directly.

提交回复
热议问题