Skip to main content
prohira
Level 3
Oct 16, 2015 2:26 AM UTC
Solved

Less compilation error in AEM 6.0 (SP1)

I started testing AEM 6.0 with SP1 today and got couple of LESS compilation issue.

In one of my LESS file "xyz.less", I have included another LESS file in xyz.less for mobile responsiveness with @import "xyz.mobile". This was working fine till AEM 5.6 but to make it work in AEM 6.0 I had to convert @import "xyz.mobile" to @import "xyz.mobile.less". Is this really required or anything changed in AEM 6.0 or SP1?

 

Thanks, Pankaj.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
prohira
prohiraAccepted solution
Level 3
Oct 16, 2015 2:26 AM UTC

Even after installing feature pack it didn't work. Going to raise a daycare.

6 replies

Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC

Pankaj Rohira wrote...

Thanks. I will try installing the package you mentioned.

What's GRANITE-1579 about? Did you already log a ticket?

 


It is internal reference number to  make less parser handle @imports without ".less" extension

Translate
prohira
prohiraAuthorAccepted solution
Level 3
Oct 16, 2015 2:26 AM UTC

Even after installing feature pack it didn't work. Going to raise a daycare.

Translate
prohira
prohiraAuthor
Level 3
Oct 16, 2015 2:26 AM UTC

Thanks. I will try installing the package you mentioned.

What's GRANITE-1579 about? Did you already log a ticket?

Translate
prohira
prohiraAuthor
Level 3
Oct 16, 2015 2:26 AM UTC

When I tried running dumplibs, I noticed some errors in error.log.

com.day.cq.widget.impl.LessCompilerImpl Resource referenced in @import statement not defined: failed to compile less /etc/designs/project/clientlib/less/componentsxyz/xyz.less: couldn't load /etc/designs/project/clientlib/less/components/xyz/xyz.mobile (404)

Afterwards I changed import statement to @import "xyz.mobile.less" and it worked (as I mentioned above in my problem statement)

Translate
Community Advisor
Oct 16, 2015 2:26 AM UTC

Do you see any errors in error.log? What kind of issue you see?

Translate
Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC

Try with installing locally, If works file daycare requesting hotfix for GRANITE-1579

Translate