Skip to content

Instantly share code, notes, and snippets.

@ArunHub
Created March 28, 2019 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArunHub/e77e36438553e8b554a0092f7681ebcd to your computer and use it in GitHub Desktop.
Save ArunHub/e77e36438553e8b554a0092f7681ebcd to your computer and use it in GitHub Desktop.
sass imports in gulp problem
https://github.com/dlmanning/gulp-sass/issues/1
Right now if any of my sass files have an @import in them I get an error like this:
stream.js:94
throw er; // Unhandled stream error in pipe.
^
source string:1: error: file to import not found or unreadable: 'normalize'
Where normalize is a normalize.scss in the same directory.
This seems to be because you are using the data option without an includePaths.
This could maybe be solved with an includePaths option?
gulp.src('./styles/main.scss')
.pipe(sass({includePaths: ['./styles']}))
.pipe(gulp.dest('./styles'))
Finally this is the answer solved for me as i used sublime text editor:
In Sublime Text 3, after setting the atomic_save property to true in my user settings I no longer receive this error.
https://github.com/dlmanning/gulp-sass/issues/235
Note : atomic save doesnt care about broken links or semicolons . LAzy burger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment