Skip to content

caniuse-lite is outdated message for v3 #76

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

Closed
wlipa opened this issue Apr 3, 2025 · 4 comments
Closed

caniuse-lite is outdated message for v3 #76

wlipa opened this issue Apr 3, 2025 · 4 comments

Comments

@wlipa
Copy link

wlipa commented Apr 3, 2025

I'm stuck on v3 for a while due to the newish browser requirements for Tailwind v4. I've started to get this message from the bundled Tailwind:

Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme

When I run the provided command, it executes, but the warning still appears. Is there some different way to satisfy the warning?

I don't really care if the browser list is out of date; I'd just like to suppress the warning.

@flavorjones
Copy link
Owner

This is not something this gem can control, unfortunately. See upstream discussion tailwindlabs/tailwindcss#9897 and tailwindlabs/tailwindcss#13586 and possibly other threads.

@flavorjones flavorjones closed this as not planned Won't fix, can't repro, duplicate, stale Apr 5, 2025
@wlipa
Copy link
Author

wlipa commented Apr 5, 2025

I had seen those; just wasn't clear if a new release of this gem would affect it. Thanks.

@tomstuart
Copy link

The gem can control this by executing Tailwind CLI in an environment with BROWSERSLIST_IGNORE_OLD_DATA set, which suppresses the message.

@flavorjones
Copy link
Owner

@tomstuart TIL!

If someone wants to submit a pull request adding that behavior to the v3.x branch I suppose I could be convinced to cut a new v3 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants