-
-
Notifications
You must be signed in to change notification settings - Fork 9.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
[Bug]: Storybook build fails in monorepo with pnpm #30377
Comments
** Disclaimer** This information might be inaccurate, due to it being generated automatically To resolve:
export default defineConfig({
resolve: {
alias: {
'./button.css': path.resolve(__dirname, 'node_modules/@storybook/react/template/cli/ts-3-8/button.css')
}
}
});
|
This AI proposed solution does not work. In fact, it seems like I do not even have referenced *.css files in node_modules.
|
Describe the bug
Storybook build fails in the monorepo environment.
While storybook dev works fine, storybook build crashes with the following error.
The node_modules folder looks like this. Seems like there are no *.css files.

Reproduction link
https://github.com/vladmiller/storybook-monorepo-reproduction
Reproduction steps
System
Additional context
No response
The text was updated successfully, but these errors were encountered: