Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 12 Error: ... from Css Minimizer, Transform failer with 1 error, Invalid version: "15.2-15.3"

While running ng build --configuration=production I get the following error.

Error: C:/.../.scss from Css Minimizer
Error: Transform failed with 1 error:
error: Invalid version: "15.2-15.3"

How can I if fix this?

like image 612
Raphaël Balet Avatar asked Jun 05 '26 06:06

Raphaël Balet


2 Answers

This has been fixed in version 12.2.16 and 13.2.1 of @angular/cli.

See https://github.com/angular/angular-cli/issues/22606

like image 121
Hero Wanders Avatar answered Jun 07 '26 23:06

Hero Wanders


Temporary fix

This is not really the solution, but a temporary fix
I had to add the following into my .browserslistrc file.

not ios_saf 15.2-15.3
not safari 15.2-15.3

Doing so will fix the error.

Solution

As @HeroWanders mentioned in his answer, this did get fix in the v12.2.16 of the @angular/cli library

like image 45
Raphaël Balet Avatar answered Jun 07 '26 22:06

Raphaël Balet