2createStudio / postcss-sprites

Generate sprites from stylesheets.
MIT License
413 stars 50 forks source link

Promise rejections throw warning #56

Closed niksy closed 8 years ago

niksy commented 8 years ago

As of v3.2.1, I get the following error in CLI output:

Warning: a promise was rejected with a non-error: [object Undefined]

I suppose it’s related to https://github.com/2createStudio/postcss-sprites/commit/4b897c0e2bf12d40a5905eca73d96d1f5841faec and Bluebird promises handling: http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-rejected-with-a-non-error

kyohei8 commented 8 years ago

I got same warning.

Warning: a promise was rejected with a non-error: [object Undefined]
    at /Users/username/work/dev/node_modules/postcss-sprites/lib/index.js:176:30
    at /Users/username/work/dev/node_modules/postcss-sprites/lib/index.js:268:11
...

prepareGroupBy is it the same problem?

jednano commented 7 years ago

I'm getting the same issue on version 4.1.1 when options.retina = true, upgrading from postcss-sprites@2.0.3 to 4.1.1.

jednano commented 7 years ago

It's this line for sure.