hail2u / node-css-mqpacker

Pack same CSS media query rules into one using PostCSS
675 stars 60 forks source link

SyntaxError: Unexpected token ... #69

Closed barnoma-soz closed 5 years ago

barnoma-soz commented 5 years ago

https://github.com/hail2u/node-css-mqpacker/blob/7ddf3524b1184dbb315795f7340e4b0226ce0d8e/index.js#L139

ejntaylor commented 5 years ago

Can you elaborate on why this has been marked invalid. I've just joined a project using this and I get an error from line 139 when running:


/Users/xxx/node_modules/css-mqpacker/index.js:139
    ...options
    ^^^
SyntaxError: Unexpected token ...
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:511:25)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:456:32)
    at tryModuleLoad (module.js:415:12)
    at Function.Module._load (module.js:407:3)
    at Module.require (module.js:466:17)
    at require (internal/module.js:20:19)
    at Gulp.<anonymous> (/Users/xxx/gulpfile.js:42:78)
    at module.exports (/Users/xxx/node_modules/orchestrator/lib/runTask.js:34:7)```
ejntaylor commented 5 years ago

Ok, as per: https://github.com/hail2u/node-css-mqpacker/issues/65

This module requires Node 8.3 or greater.

hail2u commented 5 years ago

This is invalid because there is no useful information about issue.