Answer the question
In order to leave comments, you need to log in
Cannot find module. heroku. What to do?
I launched a telegram bot on node.js on heroku.
It gives the following error in the logs: Error: Cannot find module 'node-telegram-bot-api'.
The same with all other modules.
package.json looks like this:
{
"name": "telega-bot2000",
"version": "1.0.0",
"description": "A sample Node.js app using Express 4",
"main": "index. js",
"scripts": {
"start": "node index.js"
},
"engines": {
"node": "8.9.1"
},
"repository": {
"type": "git",
" url": "
"heroku",
"express"
],
"author": "goganoid",
"contributors": [
"goganoid"
],
"license": "MIT"
}
I'm also wondering if the procfile web bot will work?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question