Node app on Heroku - getting “Application Error”

Yes it contains clientID only. I’ve checked it thrice.

https : // www . agiratech . com / how-to-deploy-angular-application-to-heroku/

Use this blog to take help in deploying your Angular project.

Me too struggled a lot in deploying but this one was it, and now mine is deployed!

still getting same error…please help…thankyou


Please update your github repo following the steps suggested in the above mentioned link, and then revert so that I can check.

I am having the same error, but I work on react js. Please let me know if you find the solution.

Hello camper, hello @BenGitter, I have been working on same issue for days. I tried deploying my app on heroku it gave out an error. so I had to check out my logs, this is what i got

Here is the link to my repository.

@BenGitter i need your help

i have made the changes suggested.


Bring out server.js out in the root folder. There is no need of seperate server folder!
One package.json and package-lock.json are enough to deploy your code.

In package.json you need to make a few changes, change the start script to ‘node server.js’
Also copy “@angular/cli” & “@angular/compiler-cli” form devDependencies to dependencies.
npm install express and path and then, you shall be good to go!

this is a useful link for react devs in order to avoid this issue

I ran into a problem

help me please

Hi @BenGitter

I am getting an error while using multer to upload multiple files, for a single file, it is working fine. I am pasting the code here.

const storage = multer.diskStorage({

destination: (req, file, cb) => {


    cb(null, './public/images/sells');


filename: (req, file, cb) => {


    cb(null, `${}-${file.originalname}`);



const upload = multer({ storage });

// routes’’, upload.array(‘picture’, 5), sellController.setItemForSale);

router.get(’’, sellController.getItemsForSale);

I am getting an error ‘Unexpected field’ in the response of this API.

Please help!

Please help

Hey everyone !! I know i am asking the same question as others but i had tried all the above mentioned solutions but still getting the same H10 error and application error …plz check my code once…i had wasted a lot of time on this thing,here is my git repo ,plz help

2020-07-15T13:44:41.450013+00:00 heroku[router]: at=error code=H10 desc=“App crashed” method=GET path="/" request_id=ba63bc49-e7e1-47e4-ad4d-5cff78d00d92 fwd=“” dyno= connect= service= status=503 bytes= protocol=https

app is crashed but why


var express = require(‘express’);

var app = express();


req.send(‘Hello world’)



req.send('New data page is hear')



var port =process.env.port || 5000;


console.log(‘Port created at :’,port);

//module.exports = app;


worker: node app.js
heroku ps:scale web=0
heroku ps:scale worker=1

Please open a new topic for your own question.