Skip to content

bug(MDC-Migration Schematic): Material MDC-Migration Schematic Not Allowing For Directory Input #28335

Closed
@tyrone-gallardo-oobnow

Description

@tyrone-gallardo-oobnow

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When running the ng generate @angular/material:mdc-migration schematic, I am immediately prompted for "What components do you want to migrate?". Upon selection I get this error:
image

But the schematic never prompted for a directory input. I have looked into the schematic and it prompts for directory for other people. Is it a versioning issue?

Reproduction

Steps to reproduce:

  1. run ng generate @angular/material:mdc-migration
  2. select button only and press enter

Expected Behavior

I should be prompted for a directory, or, if left blank, assume that all files apply

Actual Behavior

Was not prompted for a directory, and was thrown an error for not choosing a directory

Environment

Angular CLI: 17.0.8
Node: 18.16.0
Package Manager: npm 8.5.5
OS: win32 x64

Angular: 17.0.8
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package Version

@angular-devkit/architect 0.1700.8
@angular-devkit/build-angular 17.0.8
@angular-devkit/core 17.0.8
@angular-devkit/schematics 17.0.8
@angular/cdk 17.0.4
@angular/material 17.0.4
@schematics/angular 17.0.8
rxjs 7.5.7
typescript 5.2.2
zone.js 0.14.2

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: ng-generateSchematics that generate code in user projects

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions