R
R
RedSmoke_smr2019-07-15 19:51:41
npm
RedSmoke_smr, 2019-07-15 19:51:41

Why does browserslist throw an error?

Hello!
Tell me please, the essence of the problem is this:
About 3 weeks ago, with the assembly of gulp, everything was fine with me, it assembled perfectly and there were no problems. After 3 weeks, I continued working on the project, and when I typed gulp in the console, I started to get an error, the assembly itself is built, but the assembly is not updated due to the error.
I am attaching the error code from the console!
Please help me figure out this problem, in this area I, alas, am a beginner and just learning.
5d2caf00aede6533094463.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksey Solovyev, 2019-07-15
@RedSmoke_smr

What confuses you in the text of the error? There is even a link in which you can find the causes and solutions to this problem.
There are 3 ways:
1. Change the autoprefixer option browsers to overrideBrowserslist

autoprefixer({
  overrideBrowserslist: ['last 4 versions'], 
  cascade: false
}),

2. Remove the autoprefixed browsers option. Add the browerslist key to package.json:
"browserslist": [
    "last 4 versions"
  ]

3. Remove the autoprefixed browsers option. Create a file ".browserslistrc" in the root of the project. Indicate in it:
1 way it is better not to use

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question