DEV Community

CHIN SHAN LEE
CHIN SHAN LEE

Posted on

[GIT] error “ Browserslist: caniuse-lite is outdated ”

*refer to : Browserslist: caniuse-lite is outdated #1184 *


I am using Github action 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.
Enter fullscreen mode Exit fullscreen mode



I have tried npx browserslist@latest --update-db as it told me, but it does not work.

Then I trid npm i npm-update-all -g to update all outdated files can solve this issue . It works perfectly for me !

Latest comments (0)