question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Browserslist: caniuse-lite is outdated - error when building web

See original GitHub issue

Where to find the issue

npm run build on https://github.com/corona-warn-app/cwa-website

Describe the issue

Building cwa-website gives a new error message:

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

This error only started showing a couple of days ago.

npm packages are out of date.

Steps to reproduce

  1. Execute npm run build
  2. Note message:
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

Suggested change

Update packages according to definitions in package.json.

This incidentally updates also caniuse-lite which is a dependency.

To check available package versions, execute npm outdated:

$ npm outdated
Package                Current  Wanted  Latest  Location
@babel/core             7.14.3  7.15.8  7.15.8  corona-warn-app-landingpage
@babel/preset-env       7.14.2  7.15.8  7.15.8  corona-warn-app-landingpage
apexcharts              3.27.3  3.29.0  3.29.0  corona-warn-app-landingpage
autoprefixer             9.8.6   9.8.8  10.3.7  corona-warn-app-landingpage
babel-loader             8.2.2   8.2.3   8.2.3  corona-warn-app-landingpage
browser-sync           2.26.14  2.27.5  2.27.5  corona-warn-app-landingpage
cypress                  7.6.0   7.7.0   8.6.0  corona-warn-app-landingpage
google-protobuf         3.17.1  3.19.0  3.19.0  corona-warn-app-landingpage
gulp-imagemin            7.1.0   7.1.0   8.0.0  corona-warn-app-landingpage
gulp-load-plugins        2.0.6   2.0.7   2.0.7  corona-warn-app-landingpage
gulp-postcss             8.0.0   8.0.0   9.0.1  corona-warn-app-landingpage
gulp-sass                4.1.0   4.1.1   5.0.0  corona-warn-app-landingpage
gulp-sitemap             7.7.0   7.7.0   8.0.0  corona-warn-app-landingpage
gulp-sourcemaps          2.6.5   2.6.5   3.0.0  corona-warn-app-landingpage
js-yaml                 3.14.1  3.14.1   4.1.0  corona-warn-app-landingpage
marked                   2.0.5   2.1.3   3.0.7  corona-warn-app-landingpage
node-fetch               2.6.5   2.6.5   3.0.0  corona-warn-app-landingpage
rxjs                     7.3.0   7.4.0   7.4.0  corona-warn-app-landingpage
start-server-and-test   1.12.3  1.14.0  1.14.0  corona-warn-app-landingpage
webpack                 4.46.0  4.46.0  5.59.1  corona-warn-app-landingpage
webpack-stream           5.2.1   5.2.1   7.0.0  corona-warn-app-landingpage
yargs                   15.4.1  15.4.1  17.2.1  corona-warn-app-landingpage

Then to update packages to “Wanted” versions, execute npm update:

npm update --dev

Use:

npm test

to run Cypress test which confirms build and tests.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
MikeMcC399commented, Oct 24, 2021

I think npm package updates are generally best done by the Open Source Team, due to potential impact and security issues.

If you do want me to submit a PR according to the “Suggested change” above, then please let me know, otherwise I will assume that the team will handle it.

0reactions
MikeMcC399commented, Oct 27, 2021

I decided only to follow up on the LTS issue (#1967), so I am now closing this issue.

@FabioFuschi-SNK if you want to suggest about a better way to stop Browserslist: caniuse-lite is outdated. appearing in future, then please feel free to open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

caniuse-lite is outdated. Please run next command `npm ...
First, as the message says, I ran npm update caniuse-lite browserslist but it didn't fix the issue. I deleted the whole node_modules directory ......
Read more >
caniuse-lite is outdated. Please run: npx browserslist@latest ...
Unable to upgrade + Incorrect delegation of responsibility - "Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db" #663.
Read more >
ERROR: Browserslist: caniuse-lite is outdated - SonarQube
It's just an error in the logs and probably some other side-effects like not properly analysing all the “current” rules that would come...
Read more >
Browserslist: caniuse-lite is outdated - CircleCI Discuss
I'm getting the following logs when running some tests. Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db ...
Read more >
[GIT] error “ Browserslist: caniuse-lite is outdated ”
Most CI servers set it automatically. Failed to compile. I have tried npx browserslist@latest --update-db as it told me, but it does not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found