Answer the question
In order to leave comments, you need to log in
Installed an autoprefixer and displays an error in the console, how to fix it?
Replace Autoprefixer browsers option to Browserslist config.
Use browserslist key in package.json or .browserslistrc file.
Using browsers option cause some error. 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
Answer the question
In order to leave comments, you need to log in
This is not an error, this is a warning, in fact it does not interfere with work, but if it pisses you off easily, you need to replace browsers: ['last 2 versions'] in the pipe suggested in the docks with overrideBrowserslist: ['last 2 versions'] and then the warning disappears ))
.pipe(autoprefixer({
overrideBrowserslist: ['last 2 versions'],
cascade: false
}))
It is written in black and white what the problem is and how to solve it. There are examples on the first link.
If you have problems understanding English, use translate.google.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question