Angular Compiler was detected but it was an instance of the wrong class.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/h273979586/article/details/79678591

Angular编译出现错误:


原因:

由于是安装了几个不同版本的@ngtools/webpack包所以出现些错误。

解决:

1、在文件夹中删除相应报错的包。

2、第一种不行用“cnpm ls @ngtools/webpack”再安装一下。

猜你喜欢

转载自blog.csdn.net/h273979586/article/details/79678591