F:\samples>ng g c add-sample
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 g c add-sample  --module=app


原因:

项目中有多个模块(包含appModule , routingModule等),

所以需要选中要配置的app模块







友情链接
KaDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信