mars/create-react-app-buildpack

Build failed remote - Two different lockfiles found: package-lock.json and yarn.lock

chrisdel101 opened this issue · 4 comments

mars commented

I'm not familiar with conflicting lock files; always use npm.

Barring that there's been a mistake and both lockfiles actually do still exist in the commit you're pushing to Heroku, I can only think to reset the app's Heroku git repo, which includes the build cache.

Install the Heroku CLI Repo plugin, and run:

heroku repo:reset -a appname

Then try git push heroku master again.

mars commented

Another thing that could be causing this confusion:
Are you pushing the correct branch to Heroku?

The typical command pushes master to master:

git push heroku master

If you're working on a branch, and want to deploy that branch, then do:

git push heroku branchname:master

Thanks! This worked to solve part of the problem.. However the page is blank and I have the errors Uncaught SyntaxError: Unexpected token < and Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.

mars commented

To help debug your app code, check the app’s logs: heroku logs -t -n 1500