Angular报错记录 - Error: More than one module matches

angular4使用命令创建组件失败:

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.

根据命令提示使用skip-import参数跳过将组件导入到最近的模块

ng g c test --skip-import

你可能感兴趣的:(Angular报错记录 - Error: More than one module matches)