Crush on empty media query
fetis opened this issue · comments
Hello, I'm on Windows and got packer crash on this string
@media screen and (min-width: 1280px) { }
this code comes from SCSS
@include respond-to("desktop") {
// flex-grow: 1;
}
where respond-to
is mixin wich construct media query
The error message looks next
stream.js:94
throw er; // Unhandled stream error in pipe.
^
TypeError: Cannot read property 'before' of undefined
at C:\project\git\node_modules\css-mqpacker\lib\css-mqpacker.js:36:8
9
at Root.Container.each (C:\project\git\node_modules\gulp-postcss\node_modules\postcss\lib\container.js:88:20)
at _process (C:\project\git\node_modules\css-mqpacker\lib\css-mqpacker.js:27:7)
at PostCSS.process (C:\project\git\node_modules\gulp-postcss\node_modules\postcss\lib\postcss.js:34:28)
at DestroyableTransform.transform [as _transform] (C:\project\git\node_modules\gulp-postcss\index.js:49:26)
at DestroyableTransform.Transform._read (C:\project\git\node_modules\gulp-postcss\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:184:10)
at DestroyableTransform.Transform._write (C:\project\git\node_modules\gulp-postcss\node_modules\through2\node_modules\readable-stream\lib\_stream_transform.js:172:12)
at doWrite (C:\project\git\node_modules\gulp-postcss\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:238:10)
at writeOrBuffer (C:\project\git\node_modules\gulp-postcss\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:228:5)
at DestroyableTransform.Writable.write (C:\project\git\node_modules\gulp-postcss\node_modules\through2\node_modules\readable-stream\lib\_stream_writable.js:195:11)```
Can't reproduce. It seems you are using old version of this library. Latest version does not access before
property anywhere.
Looks like, this. I need to update