Node.js app works locally but heroku says missing module

后端 未结 2 1727
长发绾君心
长发绾君心 2020-12-15 05:27

I made a simple chat application using Node.JS and Socket.IO, everything works fine locally, but when I push it to heroku it gives me an application error, when I check the

相关标签:
2条回答
  • 2020-12-15 06:19

    In my case I had to add a few modules to dependencies, as they were only under devdependecies and were not built on production

    0 讨论(0)
  • 2020-12-15 06:21

    Alright so after 2 hours I figured the problem out, multiple folders named "emitter" that contained the indexof module also had a gitignore file that made git ignore the module, no idea why that was even there, but deleting them fixed the problem

    0 讨论(0)
提交回复
热议问题