Liferay Themes after workspace update

Jamie Sammons, modified 3 Years ago. Regular Member Posts: 110 Join Date: 3/10/11 Recent Posts

I had compablity issues with my Liferay development enviroment and a production server which im trying to setup. The development enviroment was upgraded from a previous version of lifery (at the time that Liferay 7.4GA1 was released), and on the production server we hade Lifray 7.4GA25. After uppdating the workspace and the local bundle in the ide and putting the target platform version to 7.4GA25 i am able to build all projects except for a theme which was created for Liferay 7.4GA1. 

The error i get is:

Using native Sass compiler
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Parsed /css/clay.scss in 24168ms
Exception in thread "main" com.liferay.sass.compiler.jsass.internal.JSassCompilerException: io.bit3.jsass.CompilationException: Error: Undefined variable: "$cadmin-selector".
        on line 1 of build/buildTheme/css/application/_drag_drop.scss
        from line 10 of build/buildTheme/css/_application.scss
        from line 9 of build/buildTheme/css/main.scss
>> html#{$cadmin-selector} {

   ------^

    at com.liferay.sass.compiler.jsass.internal.JSassCompiler.compileFile(JSassCompiler.java:134)
    at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:393)
    at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:405)
    at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:166)
    at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:80)
Caused by: io.bit3.jsass.CompilationException: Error: Undefined variable: "$cadmin-selector".
        on line 1 of build/buildTheme/css/application/_drag_drop.scss
        from line 10 of build/buildTheme/css/_application.scss
        from line 9 of build/buildTheme/css/main.scss
>> html#{$cadmin-selector} {

   ------^

    at io.bit3.jsass.adapter.NativeAdapter.compileFile(Native Method)
    at io.bit3.jsass.adapter.NativeAdapter.compile(NativeAdapter.java:44)
    at io.bit3.jsass.Compiler.compile(Compiler.java:124)
    at com.liferay.sass.compiler.jsass.internal.JSassCompiler.compileFile(JSassCompiler.java:115)
    ... 4 more

> Task :modules:xxx-theme:buildCSS FAILED

Ive created a new theme in this enviroment and added my custom css and js and templates etc to that one and get the same errors. $cadmin-selector seems to be something which i find in 134 files and should be defined.

What am i missing? Any help would be appreciated!