-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 with vite configuration cannot resolve local libraries #18682
Comments
Probably related, but unclear to me: #17156 (comment) |
Changing
as per #17156 (comment) does resolve the issue However, #17156 (comment) does not resolve the issue |
Also related: #17749 |
Hey @mdo5004 thanks for filing an issue! The reason why it's failing is because your library does not have a vite.config.ts file, in which, usually, we add the ts paths! In order for your code to work, you can do one of the following things: Use the
|
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
Using the new default
.storybook/main.ts
configuration with@storybook/react-vite
does not work if another library from the integrated monorepo is imported. Using@storybook/react-webpack5
works fine.Expected Behavior
I should be able to use storybook w/ vite even if my UI library imports from other monorepo libs
GitHub Repo
https://github.com/mdo5004/storybook-vite-import-bug
Steps to Reproduce
Nx Report
Failure Logs
Operating System
Additional Information
There is no option to use
@storybook/react-webpack5
instead of@storybook/react-vite
in the storybook configuration generator, so I simply copy over an older version of.storybook/main.ts
that does use webpack as a workaround.The text was updated successfully, but these errors were encountered: