Browserslist: caniuse-lite is outdated

:wave: Hey everyone! I come here asking for some help.
I’m getting the following logs when running some tests.

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

I’m using the cimg/node:16.15.1-browsers docker image as executor for these tests. And this orb circleci/browser-tools.

Just wanted to know if it is something that I can solve, like some workaround, or if it’s an issue from the executor or the orb.
FYI, I’ve already tried executing the suggested command but it’s not working.

Thanks in advance to whom can shed some light on this!

1 Like

Hello

I would recommend checking the version of browser-tools to make sure you are on the latest version which at this time is circleci/browser-tools@1.3.0

You can also run the command from the error in a run step before running your tests.

You can add the following run step which should resolve this issue.

- run: npx browserslist@latest --update-db

Kind Regards
Owen Oliver

1 Like

Thanks! @owenjoliver works as a charm. I supposed that was something related to the orb, but when I realized I was getting those logs locally, I ran that command, and that was all.