Closed sylvainpolletvillard closed 6 years ago
I note that you upgraded to browserslist v3 in the last commits: https://github.com/Nyalab/caniuse-api/commit/7e57b2d0b4ac749e1a5c74c2d1c1b78518262ec3 ; but it doesn't seem there was a new release since. Do you plan to release it in a new version ?
This is a pretty high impact bug. Everyone who upgrades to css-loader 1.0 and still wants CSS minification needs to install the latest version of cssnano; and if you install these package, then you hit the error "BrowserslistError: Unknown version 67 of android".
I'm no expert, but I believe these errors happen because the caniuse-api package is using and old version of "browserslist" and has not set the ignoreUnknownVersions flag.
See details here: https://github.com/cssnano/cssnano/issues/537
ok, i am looking into it
I just upgraded my version of browserslist to 3.2.8, and now I have this error in my tests:
from this code:
This already happened before. I think it is due to the browserslist version used by caniuse-api being out of date, possibly because of the package-lock.json file: https://github.com/Nyalab/caniuse-api/blob/master/package-lock.json#L862
If I rollback to the same version of browserslist, the problem is gone. But I would like to be up to date if possible. Do you know how to always use the latest version of browserslist by caniuse-api ?