WARNING: Tried to load angular more than once. Angular JS

后端 未结 23 1506
有刺的猬
有刺的猬 2020-12-01 13:57

I am trying to view my app after running Grunt Build. I use grunt serve:dist to see all production ready build but in the browser I get an infinite loop saying:

23条回答
  •  执念已碎
    2020-12-01 14:00

    The issue/fix we had might be a little unique because we're using webpack + AngularJS.

    We are using html-webpack-plugin. However, our index.html file also had

    
    

    The html-webpack-plugin automatically adds that line, so it was in our resultant HTML twice.

提交回复
热议问题