Cannot build a theme created with blade: Sass::SyntaxError: Invalid CSS after "...nput-margin-x: "

Issue

  • When creating a theme in the latest Developer Studio, the build fails with
    Sass::SyntaxError: Invalid CSS after "...nput-margin-x: ": expected expression (e.g. 1px, bold), was "!default;"

Environment

  • Liferay DXP 7.1
  • Liferay DXP 7.2

Resolution

  • Either use the latest Blade, IDE, or IntelliJ or the below workaround to lock the CSSBuilder version:
    • Add the following line to build.gradle:
      cssBuilder group: "com.liferay", name: "com.liferay.css.builder", version: "3.0.0"

Additional Information

这篇文章有帮助吗?
0 人中有 0 人觉得有帮助