In this article, we will discuss an often encountered problem with React. When updating latest versions of node (v10.15.3), npm(6.9.0) and yarn(v1.15.2) we might have seen the issue given below:
BrowserslistError: Unknown browser kaios
at Array.reduce ()
at Array.some ()
at Array.filter ()
at new Promise ()
The cause of the problem is that browserslist has dependencies which is not getting resolved by yarn. yarn upgrade does not touch the deep level dependencies and yarn is not expected to do that.
The solution to this problem is to fix the version of caniuse-lite in the package.json. This will remove the incompatibility. Follow the below mentioned steps to solve this error:
- Do the below changes to package.json
- Check the version used by yarn.lock
email@example.com, caniuse-lite@^1.0.0, caniuse-lite@^1.0.30000939, caniuse-lite@^1.0.30000955, caniuse-lite@^1.0.30000957:
This should resolve your problem.