I'm encountering an issue where Storybook 7 fails to recognize specific Twig filters, such as htmlspecialchars_decode, when rendering templates in Wingsuit 2.0.0-beta.1.
Steps to Reproduce:
Set up a project using Wingsuit 2.0.0-beta.1 and Storybook 7.
Use a Twig template that includes the htmlspecialchars_decode filter, e.g. {{ text | htmlspecialchars_decode }}.
Attempt to view the component in Storybook.
Expected Behavior:
Storybook should correctly render the component and apply the htmlspecialchars_decode filter to the text variable.
Actual Behavior:
Storybook displays an error or renders the template without applying the htmlspecialchars_decode filter. See screenshot here :
I have also attempted to add custom Twig filters in the _macros folder following the documentation, specifically duplicating the environment.js file, but have been unable to make them work within Storybook. any ideas ?
I'm encountering an issue where Storybook 7 fails to recognize specific Twig filters, such as htmlspecialchars_decode, when rendering templates in Wingsuit 2.0.0-beta.1. Steps to Reproduce:
Set up a project using Wingsuit 2.0.0-beta.1 and Storybook 7. Use a Twig template that includes the htmlspecialchars_decode filter, e.g. {{ text | htmlspecialchars_decode }}. Attempt to view the component in Storybook. Expected Behavior: Storybook should correctly render the component and apply the htmlspecialchars_decode filter to the text variable.
Actual Behavior: Storybook displays an error or renders the template without applying the htmlspecialchars_decode filter. See screenshot here : I have also attempted to add custom Twig filters in the _macros folder following the documentation, specifically duplicating the environment.js file, but have been unable to make them work within Storybook. any ideas ?