-
-
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
Unexpected default export without title: undefined #9822
Comments
@JamesIves Amazing progress with your design system. It's looking fantastic, and really exciting to see how it's coming together. 👏👏👏 The "unexpected default export w/o title" error is a problem with your configuration (and possibly with our documentation -- if there's something that needs to be fixed there, a PR would be 💯 ). Your {
test: /\.mdx$/,
use: ['babel-loader', '@mdx-js/loader'],
}, That loader generates a default export without a title, which causes the error. Meanwhile, your module.exports = [
{
name: '@storybook/addon-docs',
options: {
configureJSX: true,
babelOptions: {},
sourceLoaderOptions: null,
},
},
]; The docs preset is already configured to do the right thing on |
Thanks! We've been enjoying the build out internally. I'll gladly make a PR when I figure out the issue. Switching to
Additionally I end up getting a compile error if I strip out the mdx line in the webpack config, but I'm guessing that's just a side effect of it not being about to find the correct preset. |
@JamesIves oh right. Also upgrade all your storybook packages to 5.3! |
That did the trick! Thanks so much. |
Describe the bug
Attempting to compile mdx files, and I'm getting
Unexpected default export without title: undefined
. I'm using thestoriesOf
API. Works in a previous version, but has since started to fail.To Reproduce
yarn install && yarn start
.I've attempted a number of workarounds I've read up on this issue.
<Meta title="" />
to a story (even though I shouldn't need one?)Expected behavior
It should compile.
The text was updated successfully, but these errors were encountered: