M
M
MrPipka2021-04-06 19:55:46
Node.js
MrPipka, 2021-04-06 19:55:46

Heroku error when uploading to Heroku, what should I do?

Created a discord bot. I uploaded the bot to github, created an app on heroku, I wanted to upload it. Uploaded, started building and got the following error:

-----> Building on the Heroku-20 stack
-----> Using buildpack: heroku/nodejs
-----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/nodejs.tgz
       
 !     ERROR: Application not supported by 'heroku/nodejs' buildpack
 !     
 !     The 'heroku/nodejs' buildpack is set on this application, but was
 !     unable to detect a Node.js codebase.
 !         
 !     A Node.js app on Heroku requires a 'package.json' at the root of
 !     the directory structure.
 !     
 !     If you are trying to deploy a Node.js application, ensure that this
 !     file is present at the top level directory. This directory has the
 !     following files:
 !     
 !     botjs.js
       node_modules/
 !     package-lock.json
 !     Procfile
 !         
 !     If you are trying to deploy an application written in another
 !     language, you need to change the list of buildpacks set on your
 !     Heroku app using the 'heroku buildpacks' command.
 !         
 !     For more information, refer to the following documentation:
 !     https://devcenter.heroku.com/articles/buildpacks
 !     https://devcenter.heroku.com/articles/nodejs-support#activation
       More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
 !     Push failed

please help: >

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
ZB Venom, 2021-04-06
@zb_venom

You are missing a package.json which should contain configs to run

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question