Failed to compile with SASS theme Avalalon 4.x+

UI Components for JSF
Post Reply
admtiev
Posts: 9
Joined: 03 Nov 2017, 17:34

27 Dec 2021, 21:51

Hi!

i try to compile avalon theme 4.1 or 4.0 and failed with this message:

error src/main/webapp/resources/sass/theme/designer/components/button/_button.scss (Line 109: Invalid CSS after "...argin-top: math": expected ";", was ".div(-1 * $icon...")

With 4.0 compile start ok but failed when read the demo.css.map

write src/main/webapp/resources/avalon-layout/css/layout-pink.css.map
write src/main/webapp/resources/avalon-layout/css/layout-purple.css
write src/main/webapp/resources/avalon-layout/css/layout-purple.css.map
write src/main/webapp/resources/avalon-layout/css/layout-skyline.css
write src/main/webapp/resources/avalon-layout/css/layout-skyline.css.map
write src/main/webapp/resources/avalon-layout/css/layout-sunkist.css
write src/main/webapp/resources/avalon-layout/css/layout-sunkist.css.map
write src/main/webapp/resources/avalon-layout/css/layout-suzy.css
write src/main/webapp/resources/avalon-layout/css/layout-suzy.css.map
write src/main/webapp/resources/avalon-layout/css/layout-teal.css
write src/main/webapp/resources/avalon-layout/css/layout-teal.css.map
write src/main/webapp/resources/demo/css/demo.css
write src/main/webapp/resources/demo/css/demo.css.map
error src/main/webapp/resources/sass/theme/designer/components/button/_button.scss (Line 109: Invalid CSS after "...argin-top: math": expected ";", was ".div(-1 * $icon...")

theme 3.0.1 compile without error.

Do you have some tips?

Thx

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

31 Dec 2021, 17:59

Yes it now uses SASS 2.0 which uses Math.div instead of the old way. You need to use a SASS 2.0 compliant parser like Dart Sass.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

admtiev
Posts: 9
Joined: 03 Nov 2017, 17:34

07 Feb 2022, 19:59

Hi!

can put a little example? i try from linux or windows. The doc is not much clear.

Thx

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

07 Feb 2022, 20:21

I think you need to downloads the latest DART SASS compiler: https://sass-lang.com/dart-sass
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

admtiev
Posts: 9
Joined: 03 Nov 2017, 17:34

07 Feb 2022, 21:01

hi!

i try with dart-sass 1.49.7 standalone and failed or dont compile the 3.0.1 or 4.1 version of avalon

i try with ruby from 2.5.1 to 3.1 and can compile without error until avalon 3.0.1

can you explainme how to compile with ruby? the official doc for avalon say: use sass --update src/main/webapp/resources:src/main/webapp/resources --no-source-map but this last instrucction dont work in windows, but if exclude compile work and can use the css perfectly.

Thx

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

07 Feb 2022, 21:55

Yeah in Windows it might not be

Code: Select all

--no-source-map
But PrimeTek doesn't use windows I think most of the team have Macs.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

admtiev
Posts: 9
Joined: 03 Nov 2017, 17:34

08 Feb 2022, 14:14

Hi!

And linux tips for compile without error?

Thx

Az.MaYo
Posts: 5
Joined: 19 Mar 2014, 14:09

16 May 2022, 09:40

I'm also facing below error with both Ruby sass 3.7 and dark sass latest version. I tried with both and I think it's with all the paid theme as I'm using Harmony and OS is windows. Will try in Ubuntu and update.

error src/main/webapp/resources/sass/theme/designer/components/button/_button.scss (Line 109: Invalid CSS after "...argin-top: math": expected ";"

Please update

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

20 May 2022, 12:31

Hi,

Ruby Sass is deprecated. You can use Dart Sass; https://sass-lang.com/dart-sass

Best Regards,

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests