tailwind-bundle icon indicating copy to clipboard operation
tailwind-bundle copied to clipboard

Tailwind v4 build fails whether tailwind.config.js is present or not

Open Moonlight4940 opened this issue 11 months ago • 4 comments

I'm using Symfony 7, AssetMapper, Flowbite(flowbite/dist/flowbite.css) and symfonycasts/tailwind-bundle with Tailwind CSS v4 (+ Windows + VS Code). problem : symfony console tailwind:build command fails

  • When tailwind.config.js is present, the error is "Failed to find 'tailwind utilities'".
    
  • When tailwind.config.js is removed/renamed, the error is "Specified config file ... does not exist." symfony console tailwind:build >>>> [ERROR] Tailwind CSS build failed: see output above.

Moonlight4940 avatar May 03 '25 09:05 Moonlight4940

Hey @Moonlight4940

Was there any issue with php bin/console tailwind:init command?

Cheers!

sadikoff avatar May 27 '25 19:05 sadikoff

@Moonlight4940 have you fixed your case? Is everything working as expected?

latysh avatar Aug 07 '25 10:08 latysh

Proceded without Flowbite. It worked after many trial and error. tailwind.config.js is necessary file. It seems "importmap:require" and "importmap:install" also important command. It would be very helpful if there were more documentation about working with AssetMapper.

Moonlight4940 avatar Aug 07 '25 21:08 Moonlight4940

@Moonlight4940 is this issue still relevant for you? If you have some ideas on how to improve the docs based on your experience - please, create a PR or we can discuss it in the issue first.

bocharsky-bw avatar Aug 15 '25 15:08 bocharsky-bw