WordPress / openverse

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Home Page:https://openverse.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browserlist (caniuse-lite) DB needs updating on the frontend

zackkrida opened this issue · comments

commented

Problem

Running the frontend development server or build includes the following warning:

 WARN  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

Description

We should fix this, however npx update-browserslist-db@latest doesn't work for us. If you run it in the monorepo root, it doesn't do anything because the bowserlist is in the frontend.

The best fix I can think of for us is that we explicitly add caniuse-lite (the underlying package here) as a dev dependency in the frontend, and keep it up to date with our other packages.

Alternatives

Additional context