Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
Try this it solved my problem npx browserslist@latest --update-db
It sounds like you are using Visual Studio's Web Compiler extension. There is an open issue for this found here: https://github.com/madskristensen/WebCompiler/issues/413
There is a workaround posted in that issue:
- Close Visual Studio
- Head to
C:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X
(X is the version of WebCompiler) - Delete following folders from
node_modules
folder:caniuse-lite
andbrowserslist
Open up CMD (insideC:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X
) and run:npm i caniuse-lite browserslist
For Angular Developers
Although, I'm answering this very late. I have a bad habit of checking changelogs of every library I use and while checking the release notes of Angular CLI, I figured out that they released a new patch yesterday (9th Jan 2020) which fixes this issue.
https://github.com/angular/angular-cli/releases/tag/v8.3.22
So when you will run ng update
, you should get updates for @angular/cli
:
And running ng update @angular/cli
will fix this warning.
Cheers!