[Fixed] Browserslist: caniuse-lite is outdated – Microsoft.AspNetCore.SpaServices[0]

Issue

I have a problem when run app dotnet-core with template angular
I got this error:

Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`fail: Microsoft.AspNetCore.SpaServices[0]
Browserslist: caniuse-lite is outdated. Please run the following command: `npm update`

I try run npm update but it’s not working and I don’t get any message when I run that command.

All version

Angular CLI: 10.0.5
Node: 14.4.0
DotNet: 3.1.201

Package version:

enter image description here

How can I fix this?
Thanks

Solution

I’m using react instead of angular and I’ve faced the same issue.

According browserlist documentation, in order to fix, run:

npx [email protected] --update-db

Leave a Reply

(*) Required, Your email will not be published