'Collection "@schematics/angular" cannot be resolved.' error on --list-schematics #18548
Closed
1 of 16 tasks
Labels
area: @angular-devkit/schematics-cli
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command (mark with an
x
)Is this a regression?
This is the first time we are using this CLI.
Description
--list-schematics is returning an error when trying to list all schematics available in @schematics/angular or @angular/material package.
However, schematics are working as expected when we use ng generate, i.e.:
ng g c test-component => generates new blank component
ng g @angular/material:table --name test-table => generates new material design table
Schematics CLI is installed globally with the following command:
npm install @angular-devkit/schematics-cli -g
🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
The text was updated successfully, but these errors were encountered: