Search code examples
node.jsherokureact-starter-kit

Heroku deploying error


enter image description here at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=thawing-harbor-62063.herokuapp.com request_id=f660858a-37c6-4a77-8940-cd7ca253bb6c fwd="76.164.216.25" dyno= connect= service= status=503 bytes= protocol=https

Above console is from heroku logs -t When I type heroku open, application errors occur.

An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.

If anyone has ever faced this issue, please share solution. Thanks


Solution

  • I faced the same issue, the port of the server should be set to: process.env.PORT.

    It's because heroku dinamicaly sets the port of the application.

    I have also set the ip of the server to: null

    Update:

    From the image it seems the @babel/preset-env module is not included.

    I hope this helps you!

    Update 2:

    The solution was to use yarn run deploy as you can see it in the comments.