美文网首页
angular 基于脚手架创建组件报错

angular 基于脚手架创建组件报错

作者: lazy_tomato | 来源:发表于2020-06-30 16:02 被阅读0次

问题

More than one module matches. Use skip-import option to skip importing the component into the closest module.

PS F:\dfwork\s\tata> ng g c components/swq
More than one module matches. Use skip-import option to skip importing the component into the closest module.

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

PS F:\dfwork\s\tata> ng g c pages/swq  --skip-import
// pages/swq 是你想把组件放到哪个文件夹的路径

相关文章

网友评论

      本文标题:angular 基于脚手架创建组件报错

      本文链接:https://www.haomeiwen.com/subject/syuxqktx.html