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

Storybook failed when twig component is not installed #5

Open
WebMamba opened this issue Feb 23, 2024 · 3 comments
Open

Storybook failed when twig component is not installed #5

WebMamba opened this issue Feb 23, 2024 · 3 comments

Comments

@WebMamba
Copy link
Contributor

=> Failed to build the preview
Error: Symfony console failed with exit status 1:
CMD: 'php' 'bin/console' 'debug:config' 'twig_component' '--resolve-env' '--format=json'
Output:
Error output: [critical] Error thrown while running command "debug:config twig_component --resolve-env --format=json". Message: "No extensions with configuration available for "twig_component"."

No extensions with configuration available for "twig_component".

If the storybook is started without the twig-component package installed, an errors is throw maybe we should add a depencie on twig component as well

@squrious
Copy link
Collaborator

I wonder if Twig Components should be optional?

@WebMamba
Copy link
Contributor Author

well if TwigComponent is optional we should not get any error when running the storybook without TwigComponent

@mkrauser
Copy link

mkrauser commented Oct 3, 2024

IMHO Storybook should also be usable for regular twig-temlates, that makes sense especially for includes.
We use includes or embeds for basic stuff and Components for more advanced use-cases.

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

3 participants