Skip to content
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

I must use asset-map:compile to see modification #77

Open
LewisSama opened this issue Nov 22, 2024 · 0 comments
Open

I must use asset-map:compile to see modification #77

LewisSama opened this issue Nov 22, 2024 · 0 comments

Comments

@LewisSama
Copy link

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 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.

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

No branches or pull requests

1 participant