-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Can no longer include relative paths upwards on windows #231
Comments
I was able to reproduce but I,m wondering if this is a problem with node-sass or libsass. I'm investigating. |
It appears to be working fine with libsass |
I don't know about why this broke after v0.7.0, but to get around it for now, make sure you replace all backslashes with forward slashes in your includePaths even on Windows. |
@LaurentGoderre there was a bad commit that might have undone your windows path fixes, can you recheck those? |
They still seem fine, however I never did fix the deprecatedRender one... |
@LaurentGoderre what do you mean by the deprecatedRender one? I ask because libsass is complaining about not finding my import on Windows and the code (I'm using sass-middleware) is flowing through deprecatedRender. I'm wondering if that's the same bug as this or if I should file a new one. |
On this line https://github.com/andrew/node-sass/blob/master/sass.js#L65
https://github.com/andrew/node-sass/blob/master/sass.js#L79 |
|
Thanks. Unfortunately that doesn't fix my issue. And it turns out it fails even without |
Are you sure? can yopu post the logs? |
The error is
The error looks to be coming straight out of libsass. My .scss file has
I should add that it builds fine in ruby-sass (via gulp-ruby-sass):
I've also tried |
Is this an issue on Windows only or on Linux as well? |
I only tried it on Windows. |
@gabegorelick bootstrap-sass doesn't currently support libsass (which node-sass wraps) twbs/bootstrap-sass#494 This is also way off topic to the original issue 😉 |
Well I was going to file a new bug, but now we know that's not necessary. 😉
Thanks for the link. Now I know not to bother trying until that's fixed. Although I do think there's another issue at play here.
I'm using an older version that put them there. I've since upgraded to the official bootstrap SASS port, changed the include directive, and I still get this bug. |
Guys, see the workaround of this issue: madskristensen/WebEssentials2013#1191 (comment) I once observe the similar issue in CoffeeLint's code (on Windows) but never got a chance to dive deeper and report it. |
Here is a pull request for gulp-sass resolving this issue: dlmanning/gulp-sass#45 |
This was libsass issue. This was fixed by series of path related commits in libsass. To wit: PS C:\temp\styles> cat .\main.scss
@import '../vendor/included.scss';
PS C:\temp\styles> cat ..\vendor\included.scss
@mixin hidden {
display: none;
}
PS C:\temp\styles> node ..\node_modules\node-sass\bin\node-sass .\main.scss
Rendering Complete, saving .css file...
Wrote CSS to C:\temp\styles\main.css |
Notice the relative path to
included.scss
goes up one level before descending into the vendor directory.This is something that worked before I did
npm -g update node-sass
but now is breaking. Please fix asap. Until then I have to re-arrange my entire file structureThe text was updated successfully, but these errors were encountered: