I have used generator-angular-fullstack, and I have deployed on Heroku and all works. But I have tried to add some module (angular-bootstrap), and when I try to deploy on Heroku I have this problem:
Uncaught SyntaxError: Unexpected token < 8e80b874.vendor.js:1
Uncaught SyntaxError: Unexpected token < e1807e47.scripts.js:1
These are my steps to deploy on Heroku (the first time):
>> grunt build
>> cd dist
>> git push heroku master
>> heroku ps:scale web=1
>> heroku config:add NODE_ENV=production
>> heroku open
These are my steps to update my project on Heroku:
>> grunt build
>> cd dist
>> git commit -m "commit coment"
>> git push heroku master
>> heroku open
The problem is when I try to add some module in my angular project ('ui-router','ui.bootstrap'), in local works perfectly but when I deploy on Heroku I have the problem:
Uncaught SyntaxError: Unexpected token < 8e80b874.vendor.js:1
I have tried to set the paht in heroku:
heroku config:set NODE_PATH=lib
and force to add the lib folder inside my dist folder
git add -f lib/
I am lost... Any idea?? Thx