2

I Got this error in compilation

[Magento\Framework\View\Asset\ContentProcessorException] 

Warning: Division by zero in /var/www/html/saaf/vendor/oyejorge/less.php/li
b/Less/Functions.php on line 28

Don't know how to resolve this error.

  • remove var folder and try again deploy command – Rakesh Jesadiya Oct 13 '16 at 9:51
  • Done this process again, but still showing the same error. – Jayant Parpe Oct 13 '16 at 9:52
  • Resolved Error, It occurs due to a plugin CSS which I included in my project having a shorthand property ** font:0/0 a ** which is not supported in Magento 2 less compilation. – Jayant Parpe Oct 13 '16 at 13:08
  • you can add as answer for your question – Rakesh Jesadiya Oct 13 '16 at 13:13
3

Resolved Error, It occurs due to a plugin CSS which I included in my project having a shorthand property font:0/0 a which is not supported in Magento 2 less compilation causes a warning "Division by zero".

| improve this answer | |
  • You can escape this kind on operators on less like this: font:~'0/0' a so less doesn't think you're trying to divide by zero. – Javier Villanueva Jun 7 '17 at 10:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.