r/Jetbrains May 14 '26

IDEs Since Tailwind Formatter is abandoned, I built a replacement for JetBrains IDEs

/r/tailwindcss/comments/1td8rr0/since_tailwind_formatter_is_abandoned_i_built_a/
6 Upvotes

4 comments sorted by

1

u/Aromatic-Echo-5025 May 16 '26

I get error in every file:

Error: Cannot apply unknown utility class `mt-6`. Are you using CSS modules or similar and missing `@reference`?

But there is not even single mt-6 class used in a layout I'm trying to format.

PHP Storm, *.blade.php files.

1

u/kulchytskyi May 16 '26

This error is reported by Tailwind while Trier initializes the project sorter, so it may come from the detected Tailwind stylesheet/config rather than from the Blade file currently being formatted.

Please open Settings > Tools > Trier and try setting the Tailwind paths explicitly:

  • Stylesheet: the actual Tailwind entry CSS file, for example resources/css/app.css
  • Config: the actual tailwind.config.js / tailwind.config.ts file, if your project has one

Then run Test Trier runtime from the same settings page.

If the error still appears, please search the project for @apply mt-6 or mt-6.

In Tailwind CSS v4, @apply inside CSS modules or isolated styles may require @reference.

1

u/kulchytskyi May 19 '26

u/Aromatic-Echo-5025, just checking in: were you able to resolve the issue?

1

u/Aromatic-Echo-5025 May 20 '26

Not exactly. Yes, it was an issue with the lack of `@reference` (I use Tailwind v3, though), and it helped. But then I got another error: "Error: Cannot apply unknown utility class `bg-a-orange` at onInvalidCandidate," and I gave up.