-
-
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
storybook bundling error #9077
Comments
Same here ! |
The same issue for Reactstrap. |
Any Webpack gurus know what's going on here? @ndelangen @mrmckeb @Hypnosphi |
Can you please create a GitHub repo with minimal reproduction of your issue? |
@Hypnosphi, @shilman, hi! I had time to create a repository to reproduce my issue. I tried to install all necessary dependencies and reproduce the issue - everything works perfect. Then I added |
I was running into the same issue and I was able to fix this locally with adding the following to module.exports = ({ config }) => {
config.resolve.alias = {
'popper.js$': 'popper.js/dist/esm/popper.js',
...config.resolve.alias
};
return config;
}; I think this may just be a windows issue due to case insensitivity where it's thinking I hope this helps! |
@Tucker-Eric can you please raise that issue with Popper? That sounds like an issue that needs to be solved... others will definitely hit this one. |
Looking into this a little more, this actually looks like a storybook webpack config issue. I was able to get it working with: module.exports = ({ config }) => {
config.resolve.modules = ['node_modules'];
return config;
};
|
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-alpha.3 containing PR #9324 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v5.3.10 containing PR #9324 that references this issue. Upgrade today to try it out! |
thanks @Tucker-Eric for #9077 (comment) , it was the only way for me to fix our Next.js 9.1.1 SSR builds after upgrading to Storybook 6.0.26 |
Describe the bug
After upgrading material-ui "4.7.1" a few days ago, I can't run storybook anymore.
this is the error given when bundling:
in the file
./node_modules/@material-ui/core/esm/Popper/Popper.js
it's importing like this:import PopperJS from 'popper.js';
I think storybook thinks it's a file whereas
popper.js
is a dependency package for material-uiThe text was updated successfully, but these errors were encountered: