zoukankan      html  css  js  c++  java
  • Angular 创建组件报错 More than one module matches. Use skipimport option to skip importing the component into the closest module.

    ng g c new-component-name 

    Your global Angular CLI version (12.2.9) is greater than your local version (9.1.7). The local Angular CLI version is used.

    To disable this warning use "ng config -g cli.warnings.versionMismatch false".

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

    解决办法:

    ng g c new-component-name --module app

    Your global Angular CLI version (12.2.9) is greater than your local version (9.1.7). The local Angular CLI version is used.
    To disable this warning use "ng config -g cli.warnings.versionMismatch false".More than one module matches. Use skip-import option to skip importing the component into the closest module.

  • 相关阅读:
    freak out用法
    kinda用法
    比较级与最高级
    issue用法
    invite用法
    yet用法
    follow用法
    get用法
    turn up&turn off&turn on用法
    关于document.lastModified属性
  • 原文地址:https://www.cnblogs.com/xiaoruilin/p/15572262.html
Copyright © 2011-2022 走看看