Syntax Error in Angular App: Unexpected token <

后端 未结 30 2076
独厮守ぢ
独厮守ぢ 2020-12-02 20:16

I have an Angular app which runs perfectly in my local and production environment.. After a tiny change I made, I ran the app locally and it works fine.. Then I built the pr

30条回答
  •  攒了一身酷
    2020-12-02 20:22

    After ng build go to dist/your project folder say 'something'. Then open the index.html file and change the base URL, which is by default.

    If you put your project folder on nginx or apache then tour base URL should be

    
    

    and in my case, version of Angular is: 7.1.4

提交回复
热议问题