Less compilation error in AEM 6.0 (SP1) | Community
Skip to main content
prohira
Level 3
October 16, 2015
Solved

Less compilation error in AEM 6.0 (SP1)

  • October 16, 2015
  • 6 replies
  • 1595 views

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.
Best answer by prohira

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

6 replies

Sham_HC
Level 10
October 16, 2015

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

Community Advisor
October 16, 2015

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

prohira
prohiraAuthor
Level 3
October 16, 2015

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)

prohira
prohiraAuthor
Level 3
October 16, 2015

Thanks. I will try installing the package you mentioned.

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

prohira
prohiraAuthorAccepted solution
Level 3
October 16, 2015

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

Sham_HC
Level 10
October 16, 2015

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