Getting errors on ng-serve

流过昼夜 提交于 2019-12-11 14:41:46

问题


I am trying to use angular cli and getting following error:

ERROR in multi script-loader!./src/assets/vendors/by_bower/jquery/dist/jquery.js

Actually what I did is :

  1. npm install -g @angular/cli;
  2. npm install
  3. ng serve

In package.json I have "@angular/cli": "latest",

on ng serve I am getting this error.

After google I came to know that this can be issue of version of Angular cli. Please help how to get rid of this.

Edit:

On ng serve verbose I am getting:

Child html-webpack-plugin for "index.html": Asset Size Chunks Chunk Names index.html 3.7 kB 0
chunk {0} index.html 1.04 kB [entry] [rendered] webpack: Failed to compile.

** Actually I am trying to run a purchased theme.


回答1:


In my case I was in need of a "bower install" command.

Hope if it helps some one.

Thanks.



来源:https://stackoverflow.com/questions/43738965/getting-errors-on-ng-serve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!