I am discovering NodeJS and also the food I’m following has several projects, i ordered it by sections. I have all the projects under one main folder, i beg your pardon is also a git repository.

You are watching: Heroku no default language could be detected for this app

Each of these subfolders in the main folder is a node task by itself, complete with package.json and also related dependencies in node_modules. The difficulty is as soon as I tried to press the node application in one together folder(todo-api) to heroku, I get the adhering to error –

remote: Compressing resource files... Done.remote: structure source:remote: remote: ! No default language might be detected for this app.remote: HINT: This occurs when Heroku cannot detect the buildpack to use for this application automatically.remote: view https://devcenter.heroku.com/articles/buildpacksremote: remote: ! push failedremote: Verifying deploy...remote: remote: ! press rejected to agile-forest-32749.remote: come https://git.heroku.com/agile-forest-32749.git ! understand -> understand (pre-receive hook declined)error: fail to press some refs come "https://git.heroku.com/agile-forest-32749.git"
This is the brochure structure for the project –


I chose to refactor the end the todo-api subfolder right into a new project all by itself, and this time the push to Heroku works just fine –


I don’t recognize why I obtain the “no default language” error, particularly when the node app is specifically the same in both places. Any type of thoughts?


Heroku has a collection of default buildpacks, provided when it needs to finding the language of your app.In bespeak to execute that detection, it runs the bin/detect command of every of those default buildpacks, until one of them returns a 0 exit code.

This is the command for the node buildpack.As you can see, it needs a package.json come be situated at the root of your app, not in a subfolder.

See more: On Call Express Glucose Meter, On Call® Express Blood Glucose Monitoring Systems

This is the distinction causing your construct to fail. You should put your application at the source of your git repository.

Prev how to get a level object native mobx object?
Next usage Lodash come sort range of object by value
Source: stackoverflow

Recent Questions


contact information rwandachamber.org.com

Web : rwandachamber.org.com