Skip to content
Advertisement

BrowserslistError: Unknown version 67 of android

I have created one angular library using angular 8 and CLI 8. I am trying to build the library, but I am getting the error.

JavaScript

I have gone through some questions posted related to this error, most of them say remove node_modules and reinstall them. I tried this solution but still, I am getting the following error.

[Browserslist] Could not parse package.json. Ignoring it.

JavaScript

What can be the issue? Is this error is due to autoprefixer? What should I do to solve this issue?

package-lock.json

JavaScript

Advertisement

Answer

The thing that solved it for me was running

JavaScript

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:

JavaScript

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.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement