Keep failing with error " Browserslist: caniuse-lite is outdated "

Viewed 5534

I am using Azure static Web Apps to host my React website.

And I keep facing the error below.

yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Treating warnings as errors because process.env.CI = true.

Most CI servers set it automatically.

Failed to compile.

I have tried npx browserslist@latest --update-db for several times but it keep send run failed message to me.

and here is the entire error image

2 Answers

I have same problem in my Vue App.And in my case,yarn upgrade helps a lot.

Related