Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning about autoprefixer browsers option #49

Open
bobsilverberg opened this issue Sep 17, 2020 · 1 comment
Open

Warning about autoprefixer browsers option #49

bobsilverberg opened this issue Sep 17, 2020 · 1 comment

Comments

@bobsilverberg
Copy link

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.

@nithiz
Copy link

nithiz commented Jan 12, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants