danielguillan / bem-constructor

A Sass library for building immutable and namespaced BEM CSS objects
MIT License
543 stars 32 forks source link

Fix issues with gulp-sass #8

Closed kitze closed 9 years ago

kitze commented 9 years ago

I just read the article about css namespacing on css wizardry and i love the idea of bem constructor but unfortunately it doesn't work with gulp-sass, it throws some errors like this one:

{ status: 1, file: '../bower_components/bem-constructor/dist/_bem-constructor.scss', line: 476, column: 13, message: 'error reading values after ', code: 1 }

Even if i comment out line 476 it throws like 6-7 more errors. I think this isn't an issue with your library but it's probably node sass and gulp sass are still not updated to use some features that ruby sass has. Can this be fixed somehow?

danielguillan commented 9 years ago

Thanks @kitze!

This is (was) an issue with libsass which didn't support Sass 3.4 parent selector implementation until recently (sass/libsass#548). The issue is now closed and we should see support in the next libsass release.

If you can't wait to use BEM Constructor you should use gulp-ruby-sass or wait a few more days until the next libsass/node-sass version is release.

FedericoBiccheddu commented 9 years ago

JFYI: if you are using gulp-ruby-sass, the gem must be installed on your environment otherwise you will get this error: execvp(): No such file or directory.