Skip to content

help(Migrating Material): Getting errors when trying to migrate materials #26396

Closed
@ueoeae

Description

@ueoeae

What are you trying to do?

Trying to upgrade from Angular v12 to Angular v15. Managed to get my app running on v15 but there are some styling issuses. I am now trying to run ng generate @angular/material:mdc-migration to see if this fixes some of the issues. However, I am getting errors when trying to run this command (a lot of similar ones), here is an example:

CssSyntaxError: <css input>:2:3: Unknown word

  1 | .header-container
> 2 |   display: flex
    |   ^
  3 |   margin: 24px 40px 10px
  4 | 

Failed to process stylesheet: /src/app/decks/about/about.component.sass (see error above).

Any ideas what is causing this?

What troubleshooting steps have you tried?

Don't know where to start.

Reproduction

Steps to reproduce:
1.
2.

Environment

  • Angular: 15.0.5
  • CDK/Material: 15.0.4
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: ng-generateSchematics that generate code in user projectstroubleshootingThis issue is not reporting an issue, but just asking for help

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions