"#grid> .core is undefined" when lessc compiles bootstrap
i got the following error when i run lessc bootstrap.less
at less.Parser.parser.parse.i (/Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/js/lib/less/parser.js:385:31): #grid > .core is undefined (Less::ParseError)
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/parser.rb:61:in `block in to_css'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script/v8_context.rb:90:in `block in do_lock'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script/v8_context.rb:88:in `call'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script/v8_context.rb:88:in `Locker'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script/v8_context.rb:88:in `do_lock'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script/v8_context.rb:60:in `lock'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script/v8_context.rb:30:in `exec'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/java_script.rb:26:in `exec'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/parser.rb:61:in `to_css'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/bin/lessc:99:in `<top (required)>'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/bin/lessc:19:in `load'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/bin/lessc:19:in `<main>'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'
I found this problem . but i have my lessc updated to 1.3.
here is the version:
lessc -v
lessc 1.3.0 (LESS Compiler) [Ruby] 2.2.2
the original bootstrap file is cloned from github.
+3
source to share
2 answers
I found a solution!
- Go to less.js repo and download the repo to zip file
- Go to this branch less.rb repo and download the repo as a zip file
- Replace /Users/ftiasch/.rvm/gems/ruby-1.9.3-p374/gems/less-2.2.2/lib/less/loader.rb with the version of this file from the repo in step 2 (Library / less / loader.rb )
- Replace contents of / Users / ftiasch / .rvm / gems / ruby-1.9.3-p374 / gems / less-2.2.2 / lib / less / js / with repo contents from step 1
It should be! Two things should be noted:
- When I implemented this solution I was using ruby 1.9.3-p385
- Replacing the contents of / Users / ftiasch / .rvm / gems / ruby-1.9.3-p374 / gems / less-2.2.2 / with the contents of the repo from step 2 DID NOT WORK for me. It would be nice if this happened ...
0
source to share