示意图PrimeNG:发生未处理的异常:在集合“ primeng-schematics”中未找到示意图“ primeng-org-chart”

时间:2020-04-15 10:44:42

标签: angular primeng angular-schematics

我正在使用PrimeNG,并尝试使用原理图,我逐步遵循until directive

但是当我尝试生成一个组件时,例如:

ng g primeng-schematics:primeng-menubar --name myMenuBar

我有一个例外:

An unhandled exception occurred: Schematic "primeng-menubar" not found in collection "primeng-schematics".
See "C:\Users\myname\AppData\Local\Temp\ng-oNzWGr\angular-errors.log" for further details.

当我检查日志时,它没有太多作用:

[error] Error: Schematic "primeng-menubar" not found in collection "primeng-schematics".
    at SchematicEngine.createSchematic (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular-devkit\schematics\src\engine\engine.js:232:23)
    at CollectionImpl.createSchematic (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular-devkit\schematics\src\engine\engine.js:69:29)
    at GenerateCommand.getSchematic (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular\cli\models\schematic-command.js:134:27)
    at GenerateCommand.initialize (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular\cli\models\schematic-command.js:44:36)
    at async GenerateCommand.initialize (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular\cli\commands\generate-impl.js:12:9)
    at async GenerateCommand.validateAndRun (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular\cli\models\command.js:124:9)
    at async Object.runCommand (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular\cli\models\command-runner.js:201:24)
    at async default_1 (C:\Users\myname\Documents\Workspace\projectname\node_modules\@angular\cli\lib\cli\index.js:62:31)

我不确定是否需要执行该步骤之外的其他操作以使其正常运行。 对这个问题有任何想法吗?

在我的项目中,我可以看到:

this article

0 个答案:

没有答案