Tailwind v4 build fails whether tailwind.config.js is present or not
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.
Hey @Moonlight4940
Was there any issue with php bin/console tailwind:init command?
Cheers!
@Moonlight4940 have you fixed your case? Is everything working as expected?
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 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.