Skip to content

Updating @angular-devkit/build-angular to 12.2.1 causes styles.css Error #21567

@pfeileon

Description

@pfeileon

Description

Updated my app from Angular 11.1.1 to the newest stable version (= 12.2.1): ng update @angular/cli.

(
I found it weird that this alone also updated @angular/core. Updating @angular/core explicitly with ng update @angular/cli@12 @angular/core@12 caused the CLI to install @angular/forms and other packages with version 13.0.0-next.1. An issue which was reported but closed.
)

Error

This caused the following error when I tried to start the application: styles.css - Error: (0 , _identifier.getUndoPath) is not a function.

Additional Info

Found a stackoverflow thread where the accepted answer is to downgrade @angular-devkit/build-angular.
=> Downgrading @angular-devkit/build-angular to 12.1.4 indeed fixes the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: repro stepsWe cannot reproduce the issue with the information given

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions