I am using my github repo to connect to heroku but when I click on deploy branch, I get the following error:
! No default language could be detected for this app.
HINT: This occurs when Heroku cannot detect the buildpack to use for this application
automatically.
See https://devcenter.heroku.com/articles/buildpacks
! Push failed
I think it's because my project has 2 folders (frontend and backend) and each of them have their own packages.json files. After researching, it seems that heroku needs packages.json in the root folder. Can I create a new packages.json file in the root? I need to deploy through github.
Can I just copy paste the packages.json from my backend to the root?