Fail to deploy node.js application to heroku

后端 未结 5 1594
感动是毒
感动是毒 2020-12-10 03:52

I am trying to deploy a simple node.js express-based application to heroku, something which is apparently very basic: https://devcenter.heroku.com/articles/nodejs

He

5条回答
  •  渐次进展
    2020-12-10 04:44

    I had a similar problem a few days ago, I think it was because I imported a module created by me and that was what gave the error; I corrected it like this: I called the module "path" const path = require ("path") and then where my module was imported I made a join of the file path const myModule = require (path.join (__ dirname, 'MyModule.js'))

提交回复
热议问题