-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't update browserlist with npx browserslist@latest --update-db
on yarn 2+
#31918
Comments
Hi, this has been updated in |
Doesn't look like it?
Runnuing
When running project, browserlist still asks to update:
|
The error from running |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
12.0.4
What version of Node.js are you using?
16.13.0
What browser are you using?
n/a
What operating system are you using?
windows
How are you deploying your application?
n/a
Describe the Bug
When running yarn 2+ project, I recieve a warning "Browserslist: caniuse-lite is outdated", which tells me to run
npx browserslist@latest --update-db
to update the browserlist.Running the command gives:
Googling around, I find this issue in browserlist, turns out this command fails in yarn 2+ projects, and fix was released in browserlist 4.17.
Looking into my yarn.lock, I find:
So, I'm pretty sure the solution to this bug is to update browserlist to 4.17.
(I'm not sure if this is the correct template, sorry in advance)
Expected Behavior
I can update browserlist and get rid of the warning
To Reproduce
Create a yarn 2+ project, try updating browserlist with command above.
The text was updated successfully, but these errors were encountered: