-
-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Can't reexport the named export 'visitWithTypeInfo' from non EcmaScript module (only default export is available) #4125
Comments
Same here |
Google gave me this - graphql/graphql-js#1272 issue. I belive it's not related to us directly. |
@sibelius Actually I've solved this with this comment. Why not to try it out? Actually the problem here is that Storybook can't parse |
@fletcherist you used a custom webpack config to achieve this? can u share part of it? |
@sibelius of course, sure: module.exports = (baseConfig, env, config) => {
// ...
config.module.rules.push({
test: /\.mjs$/,
include: /node_modules/,
type: "javascript/auto",
});
config.resolve.extensions.push(".mjs");
// ... Rest params
return config;
}; |
@Hypnosphi, is this |
Yes, it's node.js extension for ES modules. We should add it to But I have no idea what does |
I'm using 4.0.0-alpha.20, to make storybook work well with babel 7
I'm hit this error, I think it is related to .mjs extensions, or a missing babelrc plugin
The text was updated successfully, but these errors were encountered: