I'm using the template from dunglas/symfony-docker. I followed the instruction to build/launch my container and installed the bare minimum according to documentation:
After installing those according to documentation, i created a simple controller to use my twig file but i encounter an error:
An exception has been thrown during the rendering of a template ("Built Tailwind CSS file does not exist: run "php bin/console tailwind:build" to generate it").
Even after running php bin/console tailwind:build, the error persists.
The only way to stop this error is to compile using asset-map:compile.
Afterward, every change i've made and built are not applied even when i use the --poll and i must rerun asset-map:compile to see any modification.
As it is very inconvenient to use asset-map:compile at every change, i wanted to know if there is anyway to make my tailwind:build --watch works.
Also, it's my first issue on GitHub so if there is any modification to make or precision, please tell me.
Hi !
I'm using the template from dunglas/symfony-docker. I followed the instruction to build/launch my container and installed the bare minimum according to documentation:
Twig:
symfony/twig-bundle
Asset-mapper:
symfony/asset-mapper
symfony/asset
symfony/twig-pack
Tailwindbundle:
symfonycasts/tailwind-bundle
After installing those according to documentation, i created a simple controller to use my twig file but i encounter an error:
An exception has been thrown during the rendering of a template ("Built Tailwind CSS file does not exist: run "php bin/console tailwind:build" to generate it").
Even after running
php bin/console tailwind:build
, the error persists. The only way to stop this error is to compile usingasset-map:compile
.Afterward, every change i've made and built are not applied even when i use the
--poll
and i must rerunasset-map:compile
to see any modification.As it is very inconvenient to use
asset-map:compile
at every change, i wanted to know if there is anyway to make mytailwind:build --watch
works.Also, it's my first issue on GitHub so if there is any modification to make or precision, please tell me.