Storybook aliases #3694
Unanswered
ricardo-fnd
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋
I have integrated storybook in turborepo, specifically in
packages/shared/storybook.To make aliases to all my
apps/I did the following inmain.ts:And then in the story I just access
login/src/components/Example.tsxand the same for the other apps, and this configuration is working.The problem is that the component associated with the story (Example.tsx) is accessing its public folder like
public/images/example.svgand this is throwing an error only when I execute storybook. If I execute only the app, no error is thrown.I'm guessing its because storybook doesn't have a
public/alias, but if this is the case, I can't addpublic/for the 3 projects, because the import its the same, but the paths are different between apps.Beta Was this translation helpful? Give feedback.
All reactions