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
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:
After installing the tailwindcss-cli the error magically vanishes, even though the commands remain the same:
RockyWearsAHat
changed the title
Tailwind Standalone Throwing Error When Running Without Tailwind CLI
Tailwind Standalone Throwing Caniuse Browserlist Error When Running Without Tailwind CLI
Apr 26, 2024
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: