Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
8920
angular-schematics error : Collection "@igniteui/angular-schematics" cannot be resolved
posted

Installed : C:\_ng\new_ig1>npm i -g @igniteui/angular-schematics

then run command below, and got the error, any advice why? 

ng new igGrid2sch --collection="@igniteui/angular-schematics" --template=side-nav

Log: 

[error] Error: Collection "@igniteui/angular-schematics" cannot be resolved.
at SchematicEngineHost.resolve (C:\node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:75:19)
at SchematicEngineHost._resolveCollectionPath (C:\node_modules\@angular-devkit\schematics\tools\node-module-engine-host.js:80:37)
at SchematicEngineHost.createCollectionDescription (C:\node_modules\@angular-devkit\schematics\tools\file-system-engine-host-base.js:118:27)
at SchematicEngine._createCollectionDescription (C:\node_modules\@angular-devkit\schematics\src\engine\engine.js:162:40)
at SchematicEngine.createCollection (C:\node_modules\@angular-devkit\schematics\src\engine\engine.js:155:43)
at NewCommand.getCollection (C:\node_modules\@angular\cli\models\schematic-command.js:143:35)
at NewCommand.initialize (C:\node_modules\@angular\cli\models\schematic-command.js:62:37)
at async NewCommand.validateAndRun (C:\node_modules\@angular\cli\models\command.js:121:22)
at async Object.runCommand (C:\node_modules\@angular\cli\models\command-runner.js:224:24)
at async default_1 (C:\node_modules\@angular\cli\lib\cli\index.js:70:31)

Also what would be the reason to use angular-schematics vs Ignite UI Cli , they seems like do the same..  I did not have problem to create new pj with Ignite UI CLI

Parents
  • 1560
    Offline posted
    Hello,
    I have been looking into your question and tested the provided command. On my side, everything seems to work as expected without any exceptions. A discussion that you might consider helpful could be found in our GitHub repository here.
    Additionally, since you are able to successfully create a new project using CLI this could be used as an alternative.
    Regarding your second question I could suggest looking at this topic where is mentioned that Ignite UI CLI is a stand-alone command-line tool for creating and scaffolding applications for a variety of frameworks.
    On the other hand, Ignite UI for Angular Schematics are part of the same project, available as a collection that can be used with the Angular CLI. They offer similar core Ignite UI CLI functionality, but one that`s integrated with the Schematics workflow and focused specifically on this product. The schematics collection is added to your project when you install Ignite UI for Angular.
    Both versions of the tooling allow for generating different projects, component and scenario views (templates).
    In addition, a useful guide could be found here.
    Let me know if I may be of any further assistance.

    Sincerely,
    Teodosia Hristodorova
    Associate Software Developer
Reply Children