App not compatible with buildpack
tkao-cursive opened this issue · 5 comments
I'm getting this error when trying to deploy code:
remote: -----> App not compatible with buildpack: https://github.com/mars/heroku-nextjs.git remote: bash: /tmp/codon/tmp/buildpacks/cc998aa50faebde1ea66717737aec22c884e4936/bin/detect: No such file or directory remote: remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure remote: remote: ! Push failed
How can I get around this?
The Javascript app, specifically its package.json
, must be at the root of the git repo, not in a sub-directory.
The Javascript app, specifically its
package.json
, must be at the root of the git repo, not in a sub-directory.
I am with the same problem. My package.json is in the root of the project.
package.json
missing from the root is the only thing that causes this error for the Node buildpack, used by default for this Next.js javascript app.
Is package.json
committed to the git repo? Are you deploying the correct git branch to Heroku?
Is your app using additional or different buildpacks? Maybe it's an error from a different buildpack which would have different compatibility requirements. heroku buildpacks
command will list them for an app.
Not to beat a dead horse per se, but I also reproduce the error as the commenters above. My package.json
is in the root, of course, and deployment succeeds with the default Nodejs buildpack on Heroku, but fails with the above error with this one. Any ideas?
Same here with create-next-app
. package.json
is in the root.