react-photoswipe icon indicating copy to clipboard operation
react-photoswipe copied to clipboard

Warning about autoprefixer browsers option

Open bobsilverberg opened this issue 4 years ago • 1 comments

When running a project that includes react-photoswipe, the following warning is issued in the console:

Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.

Using browsers option can cause errors. Browserslist config
can be used for Babel, Autoprefixer, postcss-normalize and other tools.

If you really need to use option, rename it to overrideBrowserslist.

Learn more at:
https://github.com/browserslist/browserslist#readme
https://twitter.com/browserslist

I believe this is because react-photoswipe is specifying the browsers option for autoprefixer here: https://github.com/minhtranite/react-photoswipe/blob/master/postcss.config.js#L9. This should be removed and possibly replaced with a browserslist key in package.json or a .browserslistrc file.

bobsilverberg avatar Sep 17 '20 17:09 bobsilverberg

I'm running into the same issue. @minhtranite are you still maintaining this repository?

nithiz avatar Jan 12 '21 13:01 nithiz