Angular TypeError:无法读取未定义的属性“匹配”

问题描述

只是在 Angular 中创建组件并收到以下错误,我认为 Angular mismatch version 是警告而不是错误,我也尝试并删除了 package-lock.json 和 node_modules。

    λ ng g component  libs\layout\src\lib\features\footer
    Your global Angular CLI version (11.2.6) is greater than your local version (11.0.7). The local Angular CLI version is used.   

    To disable this warning use "ng config -g cli.warnings.versionMismatch false".
    TypeError: Cannot read property 'match' of undefined
        at noCachenormalize (...\nrwl\node_modules\@angular-devkit\core\src\virtual-fs\path.js:207:14)
        at Object.normalize (...\nrwl\node_modules\@angular-devkit\core\src\virtual-fs\path.js:189:21)
        at Object.parseName (...\nrwl\node_modules\@nrwl\angular\node_modules\@schematics\angular\utility\parse-name.js:15:56)
        at ...\nrwl\node_modules\@nrwl\angular\node_modules\@schematics\angular\component\index.js:96:41
    Cannot read property 'match' of undefined

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...