I am discovering NodeJS and the course I’m adhering to has number of projects, arranged by sections. I have all the projects under one main folder, which is also a git repository.

You are watching: No default language could be detected for this app.

Each of these subfolders in the key folder is a node task by itself, complete with package.json and related dependencies in node_modules. The trouble is when I do the efforts to press the node app in one such folder(todo-api) to heroku, I acquire the complying with error –


remote: Compressing resource files... Done.remote: structure source:remote: remote: ! No default language could be detected because that this app.remote: HINT: This occurs as soon as Heroku can not 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 push some refs to "https://git.heroku.com/agile-forest-32749.git"
This is the magazine structure for the job –

*

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

*

I don’t know why I gain the “no default language” error, particularly when the node application is precisely the same in both places. Any kind of thoughts?

Answer

Heroku has a collection of default buildpacks, offered when it needs to finding the language of her app.In bespeak to carry out that detection, it runs the bin/detect command of each of those default buildpacks, until one of them return a 0 leave code.

This is the command because that the node buildpack.As you deserve to see, it calls for a package.json come be situated at the root of her app, not in a subfolder.

See more: Forza Horizon 3 Steering Wheel Xbox One, Forza Horizon 3

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


Prev exactly how to obtain a level object native mobx object?
Next use Lodash to sort range of thing by value
Source: stackoverflow

Recent Questions


Tags


ajaxangularangularjsapiarraysasynchronousaxioscssd3.jsdiscorddiscord.jsdomdom-eventsecmascript-6expressfirebaseformsfunctiongoogle-apps-scriptgoogle-chromegoogle-cloud-firestoregoogle-sheetshtmldiscoverhotmail.comjestjsjqueryjsonmongodbmongoosenode.jsobjectphppromisepythonreact-hooksreact-nativereact-routerreactjsregexstringtypescriptvue-componentvue.jsvuejs2webpack
contact info discoverhotmail.com.com

Web : discoverhotmail.com.com


discoverhotmail.com
concerns