Error when trying to use less
morgoth opened this issue · 4 comments
I'm having application.css.less
with simple body {color: red;}
I got error (using middleman-sprockets )
http://storage6.static.itmages.com/i/16/0219/h_1455902604_6509929_8a77d72b7d.png
Thanks @morgoth, I'm having some trouble reproducing -- can you provide a bit more information (an example project would be ideal), but hoping this would be enough:
- Your Gemfile & Gemfile.lock
- Your config.rb
- Basic project structure (mainly which path application.css.less is at)
I created fresh middleman project (4.1.1) by middleman init
and the error is the same
Gemfile:
gem 'middleman', '>= 4.0.0'
gem 'less'
gem 'therubyracer'
gem "middleman-sprockets", github: "middleman/middleman-sprockets"
config.rb is not changed at all.
source/stylesheets/site.css.less
body {
color: red;
}
Awesome, thanks -- got that reproducing now (not sure why my initial test case wasn't catching it).
Unfortunately it looks like sprockets has dropped less support with 3.x sstephenson/sprockets#547. For most things I think the built in less support of middleman should be good -- and in general we shouldn't be using sprockets for assets it doesn't support.
Thanks for the report!