Syntax Error in Angular App: Unexpected token <

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

    I was facing the same issue.

    In my case, the main.bundle.js was missing. Copying that file again to the dist folder solved the issue.

    One more change that I did was to change the following in the index.html file in the dist -

    
    

    To

    
    

提交回复
热议问题