tonifisler/generator-styleguide

Strange error with Styles task and gulp-ruby-sass

Closed this issue · 2 comments

Yago commented

I just update the generator and now, I can't compile my sass anymore...

flapper  git:(master) ✗ gulp
[15:21:02] Using gulpfile ~/Sites/Lab/flapper/gulpfile.js
[15:21:02] Starting 'clean'...
[15:21:02] Finished 'clean' after 5.78 ms
[15:21:02] Starting 'default'...
[15:21:02] Starting 'vendors'...
[15:21:02] Finished 'vendors' after 262 ms
[15:21:02] Starting 'styles'...
[styles] Processing styles for dev env. No minifying here, for sourcemaps!

events.js:72
        throw er; // Unhandled 'error' event
              ^
/Users/Yago/Sites/Lab/flapper/tsm.scss:3:1: Unknown word

// Init ------------------------------------
^
@import 'tsm-mixins';
    at Input.error (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/node_modules/postcss/lib/input.js:46:11)
    at Parser.word (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/node_modules/postcss/lib/parser.js:163:18)
    at Parser.loop (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/node_modules/postcss/lib/parser.js:36:16)
    at Function.module.exports [as parse] (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/node_modules/postcss/lib/parse.js:11:10)
    at PostCSS.process (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/node_modules/postcss/lib/postcss.js:47:24)
    at Autoprefixer.process (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/lib/autoprefixer.js:65:31)
    at DestroyableTransform._transform (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/index.js:26:33)
    at DestroyableTransform.Transform._read (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (/Users/Yago/Sites/Lab/flapper/node_modules/gulp-autoprefixer/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:237:10)

It's strange because there is no tsm.scss in my project root file. It's like he try to compile something from my previous compliation... 👻

It seems coming from the update of gulp-ruby-sass 😅, because when I downgrade before the update, everything's fine.

@Yago I had the same issue. I noticed that if you remove the .sass-cache directory, the problem goes away.

Yago commented

@tonifisler Yep, you're right 👍

Definitely strange... 👽