Estou tentando fazer um deploy de um aplicação no heroku de uma aplicação NodeJS 14.5.1
Toda vez que faço os seguintos comandos
git add .
git commit heroku
git push heroku master
Tenho o seguinte log
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
Some possible problems:
- A module may be missing from 'dependencies' in package.json
https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies
Love,
Heroku
! Push rejected, failed to compile Node.js app.
! Push failed
Não encontrei alguma explicação que possa ajuda nesse link deles
Aqui está meu packege.json
{
"name": "api",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"dev": "nodemon src/index.ts --exec ts-node",
"start": " node dist/index.js",
"build": "tsc"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"aws-sdk": "^2.848.0",
"axios": "^0.20.0",
"body-parser": "^1.19.0",
"jsonwebtoken": "^8.5.1",
"md5": "^2.2.1",
"multer": "^1.4.2",
"multer-s3": "^2.9.0",
"mysql": "^2.18.1",
"mysql2": "^2.1.0",
"nodemailer": "^6.4.10",
"restify": "^8.5.1",
"restify-cors-middleware": "^1.1.1",
"restify-router": "^0.6.0",
"sequelize": "^6.5.0",
"sequelize-cli": "^6.2.0",
"shortid": "^2.2.15",
"socket.io": "^2.3.0",
"dotenv": "^8.2.0",
"typescript": "^3.9.6",
"@types/jsonwebtoken": "^8.5.0",
"@types/md5": "^2.2.0",
"@types/multer": "^1.4.3",
"@types/multer-s3": "^2.7.9",
"@types/restify-cors-middleware": "^1.0.1",
"@types/sequelize": "^4.28.9",
"@types/shortid": "0.0.29",
"@types/socket.io": "^2.1.8",
"nodemon": "^2.0.7",
"reflect-metadata": "^0.1.13",
"sequelize-typescript": "^2.1.0",
"ts-node": "^8.10.2"
},
"devDependencies": {
},
"engines": {
"node": "14.15.1"
}
}