-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Tailwind Standalone Throwing Caniuse Browserlist Error When Running Without Tailwind CLI #13586
Comments
Just crashed into this, thanks for opening this issue <3 |
And the traditional +1 😄 |
Took me a few hours to figure out the issue the first time I ran into it, thought I would hopefully save a little bit of time for those running into it in the future, nowhere on the docs does anyone mention the CLI needs to be installed, and Caniuse/Browserslist shouldn’t be too hard for someone to update if they’re familiar with the developer setup for the project. Glad to be of some assistance <3 |
Thanks g 🫡😄 |
Tailwind is throwing a caniuse/browserslist outdated issue without using the CLI:
To repeat the issue:
1: Open a project,
npm init -y
=>npm i -D tailwindcss
2: Initialize tailwind with
npx tailwindcss init
, and set up tailwind input file in current directory (input.css):@tailwind base; @tailwind components; @tailwind utilities;
3: Set up start command:
"start": "npx tailwindcss -i ./input.css -o ./output.css --watch",
4: That's it, error is
This error doesn't happen with the tailwindcss-cli installed, running
npx update-browserslist-db@latest
does not fix it. I think it has to do with the bundle of tailwind, if the cli needs to be installed it should be updated on the docs, ideally though there shouldn't really need to be another package installed for it to work standalone. Stuff still rebuilds and it updates the classes fine without the CLI, but the error is everlasting without it.The text was updated successfully, but these errors were encountered: