Heroku has a set of default buildpacks, used when it must detect the language of your app.
In order to try this detection, it runs the
bin/detect command of every of these default buildpacks, till certainly one of them returns a 0 exit code.
This is the command for the node buildpack.
As you may see, it requires a
bundle.json to be positioned on the root of your app, not in a subfolder.
This is the distinction inflicting your construct to fail. You must put your app on the root of your git repository.
In my case, I hadnt Heroku arrange within the root folder, as a result of my GitHub repository was cut up up into frontend/ and backend/ folders. Each of them had a bundle.json. Since Heroku wants the bundle.json file within the root folder of the repository, it can not detect the language.
In my case, I needed to initialize a secondary GitHub repository within the backend/ folder. After the backend undertaking was pushed to GitHub as separate undertaking,
git push heroku grasp labored.
In my case I had pending information must be dedicated to github 🙂
Related posts on java script :