Skip to content
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

Support for monorepo build is missing in @web/dev-server-storybook #2680

Open
hardikpthv opened this issue Mar 20, 2024 · 1 comment
Open

Comments

@hardikpthv
Copy link

Currently when @web/dev-server-storybook is used in the Monorepo particularly with yarn workspaces in which the dependencies are managed centrally instead of package-level, the building of the storybook feature breaks on the following issue:

node_modules/@web/dev-server-storybook/node_modules/babel-plugin-bundled-import-meta/index.js:68
                                        throw new Error('Does not match any mappings or bundleDir.');

From quick investigation, the change in rollup base config, by adding support for packageDir, would fix the issue.

@bashmish
Copy link
Member

We intend to deprecate @web/dev-server-storybook in favor of @web/storybook-builder.
Let's maybe pair up sometime this or next week and try a new @web/storybook-builder?
I think it should be better to monorepo.
I can make a prerelease for you with our internal config and addons and help to set it up. Actually curious how it's gonna work in a big project and monorepo, also how the migration scripts will work and such

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants