Syntax Error in Angular App: Unexpected token <

后端 未结 30 2149
独厮守ぢ
独厮守ぢ 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:31

    
    
    

    add above lines to index.html

    Reason: Chrome caches the index.html so the hash in main.hash.js does not get updated and we get the "unexpected token error <".

提交回复
热议问题