You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our Create React App, the node_modules\caniuse-lite\package.json has version 1.0.30001251. yarn build tells me that
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
But when I do this, the version in node_modules\caniuse-lite\package.json stays the same, and yarn build will request to run the browserlist update again. Our project's package.json and yarn.lock are unchanged. This is the output of npx browserslist@latest --update-db:
Latest version: 1.0.30001384
Installed version: none
Removing old caniuse-lite from lock file
Installing new caniuse-lite version
$ yarn add -W caniuse-lite
# (Warnings about peer dependencies...)
Cleaning package.json dependencies from caniuse-lite
$ yarn remove -W caniuse-lite
# (Warnings about peer dependencies...)
caniuse-lite has been successfully updated
No target browser changes
I had the same issue.
To fix it I manually removed all references to caniuse-lite in yarn.lock and then executed
npx browserslist@latest --update-db yarn.zip
it seems the part "Removing old caniuse-lite from lock file" is not working
You'll find attached package.json and yarn.lock
OS: Windows 11
Node Version : v16.14.2
In our Create React App, the
node_modules\caniuse-lite\package.json
has version 1.0.30001251.yarn build
tells me thatBut when I do this, the version in
node_modules\caniuse-lite\package.json
stays the same, andyarn build
will request to run the browserlist update again. Our project'spackage.json
andyarn.lock
are unchanged. This is the output ofnpx browserslist@latest --update-db
:Also posted at Stack Overflow.
The text was updated successfully, but these errors were encountered: