Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't compile if you @import from a directory with a dot in the name #280

Closed
quagliero opened this issue Feb 6, 2014 · 5 comments
Closed

Comments

@quagliero
Copy link

As a user of the inuit.css framework, I stumbled into this error when getting gulp-sass up and running. gulp-sass led me to node-sass which led me here!

If you leave inuit as is and try and import it, it errors.

@import "vars";
@import "inuit.css/inuit";
throw er; // Unhandled stream error in pipe.

Change the directory name to 'inuitcss', and all works fine.

I imagine this will/has catch/caught a lot of people out.

@akhleung
Copy link

akhleung commented Feb 6, 2014

This has been fixed in master -- see #208. Node-sass hasn't updated the version of LibSass that it's using.

@akhleung akhleung closed this as completed Feb 6, 2014
@quagliero
Copy link
Author

Thanks! Bloody Node-sass ;)

@inlikealion
Copy link

@akhleung Are you sure this is only from the /path/with.css/string context? I am having the same issue with @import "bower_components/inuit-layout/objects.layout";.

I had to fix it by explicitly adding the file extension: @import "bower_components/inuit-layout/objects.layout.scss";

@akhleung
Copy link

Are you using node-sass, or standalone libsass/sassc? Node-sass is bundling an outdated version of libsass. I tried an example similar to yours with the master build of libsass, and it works for me.

@inlikealion
Copy link

Great to hear. I am using node-sass/grunt-sass, which I know are not shipping the latest libsass. I just wanted to make sure your refactoring wasn’t ONLY fixing the path**.css** string. Thanks for checking into it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants