Next.js Discord

Discord Forum

I keep getting the message "Browserslist: caniuse-lite is outdated" appearing when I load my applica

Unanswered
New Zealand Heading Dog posted this in #help-forum
Open in Discord
New Zealand Heading DogOP
I keep getting the message listed below while running my application.
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

I've tried updating this many times using both yarn add and the command listed in the message. Neither have worked and the message still appears. Could this be a bug or just an issue that I'm having?

Whenever I run yarn add update-browserslist-db@latest it appears like it's working, but it doesn't actually do anything.

Running using the yarn add command:

yarn add v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > ts-api-utils@1.0.3" has unmet peer dependency "typescript@>=4.2.0".
warning " > update-browserslist-db@1.0.13" has unmet peer dependency "browserslist@>= 4.21.0".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ update-browserslist-db@1.0.13
info All dependencies
└─ update-browserslist-db@1.0.13
Done in 8.57s.


Continued...

2 Replies

New Zealand Heading DogOP
Running with the npx command:
$ npx update-browserslist-db@latest
Need to install the following packages:
update-browserslist-db@1.0.13
Ok to proceed? (y) y
Latest version:     1.0.30001566
Installed version:  none
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ yarn add -W caniuse-lite
warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > ts-api-utils@1.0.3" has unmet peer dependency "typescript@>=4.2.0".
warning " > update-browserslist-db@1.0.13" has unmet peer dependency "browserslist@>= 4.21.0".
Cleaning package.json dependencies from caniuse-lite
$ yarn remove -W caniuse-lite
warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > ts-api-utils@1.0.3" has unmet peer dependency "typescript@>=4.2.0".
warning " > update-browserslist-db@1.0.13" has unmet peer dependency "browserslist@>= 4.21.0".
caniuse-lite has been successfully updated


Next Info:
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Home
Binaries:
  Node: 20.9.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.0.4
  eslint-config-next: 14.0.3
  react: 18.2.0
  react-dom: 18.2.0
  typescript: N/A
Next.js Config:
  output: N/A

Doesn't matter what it says in the Next info command about Yarn, yarn does work as I've been using yarn dev to run my application for a while.
I've tried alot more aswell such as installing the browserlist package and the caniuse-lite package separately.