javascript – Heroku: No default language could be detected for this app error thrown for node app

Javascript – Heroku: No Default Language Could Be Detected For This App Error Thrown For Node App

javascript – Heroku: No default language could be detected for this app error thrown for node app

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.

javascript – Heroku: No default language could be detected for this app error thrown for node app

In my case I had pending information must be dedicated to github 🙂

READ :  Check If String Contains Specific Character in JavaScript

Related posts on java script :

Leave a Reply

Your email address will not be published. Required fields are marked *