Skip to content

bug(cdk/schematics): ng update migration does not find the global stylesheet. #24189

Open
@sandeeppatidar30

Description

@sandeeppatidar30

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

NIL

Description

@angular/cdk/schematics does not find all the stylesheets in a workspace. We are overrding visitStylesheet method of DevkitMigration but global stylesheets are not getting detected.

Even ng update @angular/[email protected] does not run TildeImportMigration for global stylesheets.

Reproduction

Steps to reproduce:

  1. ng update @angular/[email protected]`

Expected Behavior

It should run TildeImportMigration for global stylesheets.

Actual Behavior

It does not run TildeImportMigration for global stylesheets.

Environment

  • Angular: 13.1.0
  • CDK/Material:13.1.0
  • Browser(s): chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/schematicscdk/schematics is *not* a public APIneeds investigationA member of the team needs to do further investigation to determine the root cause

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions