The thing that solved it for me was running
npx browserslist --update-db
in project root. This made changes to package-lock.json
updating versions of caniuse-lite
.
To give some context, I landed on this question because I was getting this error:
Compiling TypeScript sources through ngc
ERROR: Unknown version 80 of android
An unhandled exception occurred: Unknown version 80 of android
after I upgraded angular from 9.x.x to 10.x.x.
I was getting this error both on my dev machine and in CI, so removing node_modules
and package-lock.json
was not really an option.