Skip to content

@tailwindcss/upgrade - brakes boolean operators in Vue files #17974

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

Open
scheinercc opened this issue May 12, 2025 · 1 comment · May be fixed by #18025
Open

@tailwindcss/upgrade - brakes boolean operators in Vue files #17974

scheinercc opened this issue May 12, 2025 · 1 comment · May be fixed by #18025
Assignees

Comments

@scheinercc
Copy link

What version of Tailwind CSS are you using?

Upgrading to tailwindcss v4.1.6

What build tool (or framework if it abstracts the build tool) are you using?

Vite 5.2.3

What version of Node.js are you using?

For example: v22.14.0
What operating system are you using?

macOS

Describe your issue

Running npx @tailwindcss/upgrade@latest broke logical operators in Vue files.
Examples:

Image
Image

Maybe related to
#14737
#14774

@RobinMalfait
Copy link
Member

Hey!

Yeah this is also one of those false positives that is hard to catch. In this scenario, the difference between these attributes:

:class="!visible"
:active="!visible"

is basically indistinguishable without safelisting a set of attributes where it is allowed. But that list could be different depending on where Tailwind CSS is being used.

That said, the duration one is probably one we can fix because typically a duration class doesn't exist on its own.

@RobinMalfait RobinMalfait self-assigned this May 12, 2025
RobinMalfait added a commit that referenced this issue May 14, 2025
@RobinMalfait RobinMalfait linked a pull request May 14, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants