F:\samples>ng g c add-sampleapp
Error: More than one module matches. Use skip-import option to skip importing the component into the closest module..net
More than one module matches. Use skip-import option to skip importing the component into the closest module.3d
解決辦法:component
ng g c add-sample --module=appblog
緣由:ip
項目中有多個模塊(包含appModule , routingModule等),io
因此須要選中要配置的app模塊import
轉載自:https://blog.csdn.net/MengYan_/article/details/79790962module