Message Boards

Unable to build Theme in 7.1 - Error: Incompatible units: 'rem' and 'em'.

rohan nagavaram, modified 3 Years ago.

Unable to build Theme in 7.1 - Error: Incompatible units: 'rem' and 'em'.

New Member Posts: 2 Join Date: 4/4/14 Recent Posts
Unable to build theme when i am trying make use of boostrap@4.5.3 css as part of my themecdn : https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css

Exception in thread "main" com.liferay.sass.compiler.jni.internal.JniSassCompilerException: Error: Incompatible units: 'rem' and 'em'.
on line 1578 of build/buildTheme/css/webpack/common.scss
>>  #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.3    
------------------------------------------^     
at com.liferay.sass.compiler.jni.internal.JniSassCompiler.compileFile(JniSassCompiler.java:164)     
at com.liferay.css.builder.CSSBuilder._parseSass(CSSBuilder.java:380)     
at com.liferay.css.builder.CSSBuilder._parseSassFile(CSSBuilder.java:394)     
at com.liferay.css.builder.CSSBuilder.execute(CSSBuilder.java:160)     
at com.liferay.css.builder.CSSBuilder.main(CSSBuilder.java:79)FAILURE: Build failed with an exception.* What went wrong: Execution failed for task ':wars:cp2-intuitive-theme:buildCSS'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_162\bin\java.exe'' finished with non-zero exit value 1* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
:wars:cp2-intuitive-theme:buildCSS FAILED
Hisham Khartoum, modified 3 Years ago.

RE: Unable to build Theme in 7.1 - Error: Incompatible units: 'rem' and 'em

New Member Posts: 3 Join Date: 9/6/20 Recent Posts
I believe 7 is using bootstrap 4.  You don’t require to add an additional library. If your facing a problem in using liferay bootstrap, why don’t you share it.