A
A
Alex2021-09-08 07:20:11
Node.js
Alex, 2021-09-08 07:20:11

How to fix Browserslist: caniuse-lite is outdated.?

Good afternoon, tell me how to fix the warning at startup and when building the project

Browserslist: caniuse-lite is outdated. Please run:
npx [email protected] --update-db

doesn't help

either
npm i caniuse-lite browserslist
.browserslistrc with config
# Browsers that we support
last 1 version
> 1%
IE 10 # sorry

and writing
in package.json
"browserslist": [
    "last 1 version",
    "> 1%",
    "IE 10"
  ]

produces no results and a warning appears.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question