Build errors with Angular 12 (sass >= 1.33)

Post Reply
cito
Posts: 15
Joined: 12 Aug 2017, 13:43

23 Aug 2021, 13:44

Since SASS Dart 1.33, compiling the Designer CSS gives the following error message:
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
The problem is caused by code like this:

Code: Select all

padding: nth($inputPadding, 1)/2 0;
This happens because Angular now uses a newer SASS version when building production packages (currently sass 1.38, the error message appears since sass 1.33). See https://github.com/angular/angular-cli/ ... ckage.json

I think this must be fixed in PrimeNG Designer by using math.div instead of / or simply *0.5 instead of /2.

This can also be done automatically using

Code: Select all

sass-migrator division **/*.scss
.

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

25 Aug 2021, 16:17

Hi,
Firstly, thank you for your feedback and yes, we will fix for the next release.

Best regards,
Merve Özçifçi

Post Reply

Return to “PrimeNG Theme Designer API”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests