Heroku deploy error: "Cannot find name 'require'."
Add @types/node
as an application dependency:
npm install @types/node --save
To compile the application without errors, Heroku needs the Node types dependency; it's not enough to have it as a development dependency.
See typescript getting error TS2304: cannot find name ' require' for related information.