Wednesday, 17 May 2017

SITUATION:

I am currently building a MEAN stack application with Angular 2 and Typescript.

Everything works fine on localhost.

So I decide to deploy to heroku.

npm run build

git add .
git commit -m "commit"
git push heroku master

I open the app in my browser.

It does not load.


ERROR:

Error in browser console:

Uncaught SyntaxError: Unexpected token <    bundles.js 1


QUESTION:

How do I get my app to load on heroku ?



via Coder1000

No comments:

Post a Comment