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

[Bug]: @storybook/react-webpack5 framework cannot build libraries in monorepo #23452

Closed
mandarini opened this issue Jul 14, 2023 · 1 comment
Closed

Comments

@mandarini
Copy link
Contributor

mandarini commented Jul 14, 2023

Describe the bug

I have a Nx monorepo, with one application and some libraries. When I am using @storybook/react-webpack5 framework, it works for the app but it does not work for the libraries, whether they are buildable or not. @storybook/react-vite works in all cases. Whereas @storybook/react-webpack5 seems to only work with projects that are built with webpack.

To Reproduce

https://github.com/mandarini/storybook-webpack5-issue

System

npx storybook@latest info
Need to install the following packages:
  [email protected]
Ok to proceed? (y)

Environment Info:

  System:
    OS: macOS 12.6
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
  Binaries:
    Node: 18.15.0 - ~/.nvm/versions/node/v18.15.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.15.0/bin/yarn
    npm: 9.6.7 - ~/.nvm/versions/node/v18.15.0/bin/npm
  Browsers:
    Chrome: 114.0.5735.198
    Edge: 111.0.1661.51
    Safari: 16.0
  npmPackages:
    @storybook/addon-essentials: 7.0.27 => 7.0.27
    @storybook/core-common: ^7.0.24 => 7.0.27
    @storybook/core-server: 7.0.27 => 7.0.27
    @storybook/react-vite: 7.0.27 => 7.0.27
    @storybook/react-webpack5: 7.0.27 => 7.0.27

Additional context

No response

@mandarini
Copy link
Contributor Author

Closing this, as installing core-js fixes it.

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

No branches or pull requests

1 participant