[CLI][Schematics] Override Angular Schematics issue - Collection "[Schematics folder path]" cannot be resolved. - Windows #29978
Labels
area: @angular-devkit/schematics
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
generate
Is this a regression?
The previous version in which this bug was not present was
Unknown
Description
This is similar issue to #29559.
The behavior has been fixed but only in ng generate command is executed in the root folder.
If you try to override standard Angular Schematics with a custom one by the use of schematicCollections option in angular.json file like for instance:
And create your custom schematics (index.ts):
And then go to any subfolder.
It will end up with an error message like this one:
Collection "D:\projects\schematics-test_v19\src\app\schematics" cannot be resolved.
Please use the attached repo to reproduce the issue:
schematics-test_v19.zip
Minimal Reproduction
Run npm install and then go to a subfolder, for instance:
cd .\src\app
and try to generate a component using:
ng g c
command.
Exception or Error
Your Environment
Anything else relevant?
This is similar issue to #29559.
The text was updated successfully, but these errors were encountered: