-
-
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]: v7: "global" module alias breaks package that uses the real "global" package #21242
Comments
Temp fix by adding these lines to the webpackFinal: async (config) => {
// Removing the global alias as it conflicts with the global npm pkg
const { global, ...alias } = config.resolve.alias
config.resolve.alias = alias
// Other config
} |
I'm having this same issue within a storybook addon "@storybook/addon-console", which has a |
@ndelangen ☝️ what's happening here? |
👀 |
Yeah this is just a bug in 7.0, I'll remove the alias! |
Boo-yah!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.20 containing PR #22393 that references this issue. Upgrade today to the
|
Gadzooks!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.13 containing PR #22393 that references this issue. Upgrade today to the
|
Describe the bug
Storybook crashes with
global is its own package, and is used by a package xhr.
storybook v7's default webpack config includes an alias which breaks the build.
To Reproduce
No response
System
Additional context
No response
The text was updated successfully, but these errors were encountered: