You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I came across this error while experimenting with your awesome craft/storybook setup. I already found a workaround: I use Twig macro.
Craft uses /templates as base dir for twig-template-files so I use . as base path for my twig-files in /templates/**/*.twig. But I guess webpack does not think like that so we got a problem here...
If you have any further questions, just comment below, thanks in advance!
Unable to find template file
I came across this error while experimenting with your awesome craft/storybook setup. I already found a workaround: I use Twig macro.
Craft uses
/templates
as base dir for twig-template-files so I use.
as base path for my twig-files in/templates/**/*.twig
. But I guess webpack does not think like that so we got a problem here...If you have any further questions, just comment below, thanks in advance!
After
git clone
I added the following files:Works with Storybook but not with Craft
stories/a.stories.js
stories/b.stories.js
templates/components/a.twig
templates/components/b.twig
Output in Storybook:
Works with Craft but not with Storybook
templates/components/a.twig
Output in Storybook:
Workaround with macro
templates/components/a.twig
templates/components/b.twig
Output in Storybook:
The text was updated successfully, but these errors were encountered: