profile
viewpoint

Ask questionsUnexpected default export without title: {"includeStories":[],"parameters":{"docs":{}}}

Describe the bug I am getting the error Unexpected default export without title: {"includeStories":[],"parameters":{"docs":{}}}

To Reproduce

I only have one story: CreditCard.stories.mdx:

import { Meta, Story } from '@storybook/addon-docs/blocks';
import { withKnobs, select, boolean } from '@storybook/addon-knobs';

import CreditCard from '../src/CreditCard.js';
<Meta title="Design System|CreditCard" component={CreditCard} />

# Credit card

I have installed the necessary dependencies:

  "devDependencies": {
    "@babel/core": "^7.6.4",
    "@storybook/addon-actions": "^5.2.5",
    "@storybook/addon-docs": "^5.2.5",
    "@storybook/addon-knobs": "^5.2.5",
    "@storybook/addon-links": "^5.2.5",
    "@storybook/addons": "^5.2.5",
    "@storybook/react": "^5.2.5",
    "babel-loader": "^8.0.6"
  }

config.js file:

import { configure } from '@storybook/react';

// automatically import all files ending in *.stories.js
configure(require.context('../stories', true, /\.stories\.(js|mdx)$/), module);

addons.js file:

import '@storybook/addon-actions/register';
import '@storybook/addon-links/register';
import '@storybook/addon-docs/register';
import '@storybook/addon-knobs/register';

presets.js file:

module.exports = ['@storybook/addon-docs/react/preset'];

System:

OS: macOS 10.15
CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz

Binaries: Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node npm: 6.4.1 - ~/.nvm/versions/node/v10.15.3/bin/npm Browsers: Chrome: 78.0.3904.70 Firefox: 70.0 Safari: 13.0.1 npmPackages: @storybook/addon-actions: ^5.2.5 => 5.2.5 @storybook/addon-docs: ^5.2.5 => 5.2.5 @storybook/addon-knobs: ^5.2.5 => 5.2.5 @storybook/addon-links: ^5.2.5 => 5.2.5 @storybook/addons: ^5.2.5 => 5.2.5 @storybook/react: ^5.2.5 => 5.2.5

storybookjs/storybook

Answer questions o-t-w

Thanks @shilman, that worked :)

useful!
source:https://uonfu.com/
answerer
Oliver Williams o-t-w @giffgaff London Frontend Developer @giffgaff Previously @springernature
Github User Rank List