Skip to content

How can I use path aliases in a storybook library in a way that aliases are resolved when used by library consumers? #28490

Closed Answered by Marklb
vchan14 asked this question in Help
Discussion options

You must be logged in to vote

I am not very familiar with Vue, but I think I get what you are asking. From the way your question is worded it sounds like you may be thinking about what Storybook is, incorrectly.

Storybook is an application that consumes your components to create stories. Those stories are primarily for documenting and testing the components that you would publish for use in an application. When you build Storybook, the output is the Storybook application that uses your components in it's stories.

If you define aliases in .storybook/main.js, that is only for configuring the Storybook application.

If you are creating a component library then you want to think of Storybook as your documentation and testi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vchan14
Comment options

@vchan14
Comment options

Answer selected by vchan14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants