Caniuse-lite and update-browserslist-db warning during the build

Recently I started to get a warning in the logs during the build

Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme

for more info you can check screenshot:

I also did a research on google and what I found is that to add this command in package.json

"scripts": {
  "postinstall": "npx update-browserslist-db@latest || true"
}

but I am afraid do not break the whole app and this is the reason why I am asking here if anyone has encountered this problem before how you have solved this problem.

It sounds like you should run npx update-browserslist-db@latest to keep it updated. :slight_smile:

If you’re afraid of breaking the app, you could also run this command in a new branch and preview environment and test it out that way?

thanks I solved the issue by running npx update-browserslist-db@latest locally which changed yarn.lock and then didn’t had any warning in BUILD LOGS

1 Like

I’m glad that you found a solution! See you around the community :wave:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.