stefon icon indicating copy to clipboard operation
stefon copied to clipboard

Booststrap LESS source compile throws V8 Error

Open theronic opened this issue 10 years ago • 3 comments

Including standard Bootstrap LESS source files with bootstrap.less as a starting point, the following error is thrown by link-to-asset:

V8 error: ERROR:null:null:-1: 
undefined
TYPE: Syntax
INDEX: undefined
EXTRACT: ,,@import "variables.less";

Here is how I am including it in my view layout function:

(include-css (link-to-asset "bootstrap/less/bootstrap.less" {}))

This seems to be caused by @import. Is this supported by the LESS pipeline?

theronic avatar Jan 22 '15 14:01 theronic

It might require a newer version of less than is supported by stefon by default?

pbiggar avatar Jan 22 '15 16:01 pbiggar

I looked at clj-v8 on clojars, but it seems like 0.1.5 is the latest version. Probably the wrong place.

Then I looked at the LESS vendor scripts in stefon/stefon-core/resources/vendor/. There is LESS Rhino versions 1.2.1 and 1.3.3. Bootstrap 2 and up requires 1.3+. How can I tell which version is being used by Stefon?

theronic avatar Jan 23 '15 07:01 theronic

Here: https://github.com/circleci/stefon/blob/master/stefon-core/src/stefon/asset/less.clj

pbiggar avatar Jan 26 '15 06:01 pbiggar