intellij-lessc-plugin icon indicating copy to clipboard operation
intellij-lessc-plugin copied to clipboard

LESS CSS Compiler Error, Cannot find function toCSS in object

Open Seanom opened this issue 12 years ago • 3 comments

I have a fairly clean install of bootstrap but get the following error when trying to compile a main.less file

LESS CSS Compiler Error
         main.less: Syntax Error: Cannot find function toCSS in object [object Object]. (line -1, column -1) near
         * Bootstrap v2.2.0

If I remove the the top comment, error changes to

LESS CSS Compiler Error
         main.less: Syntax Error: Cannot find function toCSS in object [object Object]. (line -1, column -1) near
         // CSS Reset

Seanom avatar Jan 30 '13 11:01 Seanom

how to solve??

AnYaran avatar Feb 26 '14 02:02 AnYaran

// Excuse me, I speak broken English.

I have similar trouble. For example

.preview-wrapper {
  width: e(calc(98vw - 115px));
}

==>

.preview-wrapper {
  width: [object Object];
}

a-x- avatar Apr 21 '14 09:04 a-x-

I saw the same. But for me this is additionally a wrong usage of the escape function. As documentation says, you have to pass string:

String Functions

e (CSS escaping, replaced with ~"value" syntax.)

Parameters: string - a string to escape. Returns: string - the escaped string, without quotes.

bluemoehre avatar Feb 18 '15 13:02 bluemoehre