有时使用angular 如下命令创建组件的时候报错如下:
ng generate component dashboard2
Error: More than one module matches. Use skip-import option to skip importing the component into the closest module.
More than one module matches. Use skip-import option to skip importing the component into the closest module.
解决方法:
ng generate component dashboard --module=app.module