-
-
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
Error when switching to webpack5 builder with ESM modules #14938
Comments
Can you please create a reproduction by running |
I was getting the same the last few days with Updated this evening to
|
If I pin
If I use the latest,
If I pin
These two issues appear to be related to these two changes in storybookjs/telejson#65 cc @ndelangen |
For |
@adamayres I released a patch of telejson, would be be able to check if this resolved the issue? @JounQin Can you assist? I'm not sure what changed i should make based on your comment. |
@ndelangen I'm not sure if this is the thing. Firstly, the And for |
@adamayres what if you pin telejson to version 5.3.2? |
@ndelangen @eirslett I pinned to 5.3.2 and can confirm that this fixed the problem for me. |
thanks @adamayres, merged & releasing now |
Damn, I missed that, I released a patch for this. Real sorry! |
With last version (v6.3.0-alpha.41), issue is not same anymore (I updated everything following #15001). Now, the error is:
|
@ohardy make sure every SB package is |
@shilman Another problem not an issue actually is, |
I'll need to do another release of We released Controls are portable, auto-generated knobs that are intended to replace |
I just migrate to addon-controls, thanks, and I fixed many versions. New error:
|
@ohardy Can you please create a reproduction by running |
@shilman I noticed the presets/manager-presets error after doing a clean
When consolidating the versions it worked as expected. |
@yngvebn I think this is a bug on the NPM servers / propagation / caching? There's no mention of alpha.37 in our code as far as I can tell. I've seen the issue too but it's a mystery. I'm expecting the problem to go away in the next 48 hours. 🙏 |
@shilman I spent a lot of time to find the problem. I ended up changing the position of storybook in my mono repo, and started from a base with Thanks a lot for the corrections :) |
great news @ohardy!! thanks for the update 🙏 |
i'm encountering a similar issue with storybook 6.2.9 as well as 6.3.0-rc.0 with the time-input-polyfill library for which i've filed an issue (Dan503/time-input-polyfill#35)
This occurs in my storybook build, even though the webpack build succeeds, where i'm configuring a rule for
EDIT: was able to get past this issue by importing from
Edit: Someone else created an issue for this, moving conversation to there: #15221 If I use 6.2.9 I don't see this error and storybook builds successfully, although per the above discussion about telejson, I need to add the following to my package.json (i'm using yarn)
|
I fixed my issue with: webpackFinal(config) {
config.module.rules.push({
test: /\.(js|mjs|jsx)$/,
enforce: 'pre',
loader: require.resolve('source-map-loader'),
resolve: {
fullySpecified: false,
},
})
return config;
} |
Maybe it's related too: #11587
Describe the bug
When running storybook without webpack5 builder and ESM modules, everything is OK.
When changing to webpack5 builder, got errors:
To Reproduce
Complicate because it's a private repo for now. I will try to reproduce this soon in small repo.
System
The text was updated successfully, but these errors were encountered: