I am upgrading my website from CQ 5.5.1 to AEM 5.6 and the less parser is failing and it does not compile less files to CSS. Any suggestions of a possible fix to solve the issue.
2
There are 2 best solutions below
0
sherry
On
I came across this scenario recently where there was issue with less files not getting compiling adn was getting (uncompiled LESS src is included below) Rebuilding the clientlibs solved this issue and the error was gone and the styles where loading correctly.
Steps
Go to /libs/granite/ui/content/dumplibs.rebuild.html and invalidate the cache and rebuild the libs
Hope this will help
Related Questions in CSS
- CSS Class is not applying to element (border width,color,and style attributes)
- How do I find the fonts that are not loading in a CORS situation ( MoovWeb )?
- Positioning child at bottom of parent with scroll
- Play multiple audio files in a slider
- How to set text over image?
- Website zoomed out on Android default browser
- Writing/Overwriting to specific XML file from ASP.NET code behind
- My navbar is not expanding after collapse
- when a checkbox is checked how to display a different hidden element using javascript
- Gaps Vertically Using Dividers
- CSS: Preventing a property to affect on element until the end of transition
- Polygon Button with pure CSS
- transform-origin doesnt apply in safari
- show/hide multiple div tags at once and change the size of the remaining div tag
- Mask the image/maps/div (circle) using css and jquery
Related Questions in LESS
- Less beautifier - format code
- Error when assetic with lessphp try to compile a LESS file
- How to pass a LESS variable into a class name
- Compile LESS files with Grunt from multiple directories into single one, at given path
- Dependent Files with Less for Visual Studio
- How can I use LESS in jsfiddle?
- LESS CSS - &:focus not working in variable selector
- Less - How to replace integer with a string?
- Styledocco not rendering LESS, but applying the style
- Hover color cross-site for each color
- LESS not outputting source map
- Compile variables.less file to where? FLAT UI
- Compile Less with Node, with dynamic variables
- Bootstrap Navbar-Brand Text not shrinking
- Symfony Assetic, Lesscss and cssrewrite
Related Questions in AEM
- Impose component restriction to a series of parsys-CQ
- Can't install AEM and Sling plugin in eclipse
- Adobe CQ: Copy node from one CQ instance to another using crx/de
- How to include an existing component multiple times
- How to start a clean publishing instance and sync everything including OSGi bundles?
- How to create multi image component with image preview In adobe cq5?
- TouchUI Image disable upload in dialog
- How to add a custom button in rte plugin in aem/cq
- How can single instance of an OSGI factory configuration be read from Java in CQ
- How to stop sling scheduler work if inconsistent situation occures inside the job?
- Get JSP output within Servlet in AEM
- How to adapt a child node in sling model of aem6
- OSGi Component's default configuration value contains escaped backslash
- How to programatically delete revisions of a page in CQ5?
- Blog component doesn't work properly when change the name of page in AEM 6.0
Related Questions in DAY-CQ
- Less files not working with AEM
- How to activate a particular node through java code / workflow in Day CQ
- selection xtype listener unable to access multifield and multifield unable to fire the dialog.form.findfield
- Not able to call form in AEM6
- How do you set up multiple JDBC database pools in Adobe/Day CQ5?
- Export user und user acl via script in CQ5
- Changing the name of a component in Adobe CQ
- Component group not showing in sidekick (Adobe CQ)
- Pass data from one component to another in adobe CQ
- Populate Values in Drop Down
- How do you disable the .export.zip selector/extension in CQ5.5?
- DAY CQ5.4 xtype Dropdown
- How to install third party component in CQ5
- how to debug in crxde eclipse?
- Require at most one instance of component on a page
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
this link can be usefull: http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__ibm7-hi_we_are_moving.html
The thing is, in AEM 5.6.1 LESS compiler was updated to 1.3.3 and also the approach to server-side compilation was changed: prior to 5.6.1, your clientlib (including all embeds) was passed to LESS compiler as a single concatenated file.
Starting with 5.6.1, each LESS file in your clientlib is compiled separately, that is why the compilation will fail, in case you had your variable declarations in a separate file which was then embedded into numerous clientlibs. This leads to the following error (can be found in produced css):
To solve this issue, use @Import statement, which is now supported.