Created
March 28, 2019 14:47
-
-
Save ArunHub/e77e36438553e8b554a0092f7681ebcd to your computer and use it in GitHub Desktop.
sass imports in gulp problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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