Skip to content
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

Storie Documentation without component #7

Open
khylias opened this issue Oct 13, 2023 · 1 comment
Open

Storie Documentation without component #7

khylias opened this issue Oct 13, 2023 · 1 comment

Comments

@khylias
Copy link
Contributor

khylias commented Oct 13, 2023

When a Storie does not have a declared component, the auto-generated documentation does not work and displays this error message.
This case is an just an example. Some Stories don't need component.

icon.stories.js

export default {
  title: "Styles/icon",
  argTypes: {
    size: {
      control: {
        type: "select"
      },
      options: [
        "xs",
        "sm",
        "lg",
      ]
    },
    rotate: {
      control: {
        type: "select"
      },
      options: ["0", "90", "180", "270"]
    }
  }
};

TypeError: Cannot read properties of undefined (reading 'name')
image

Specs

"storybook": "^7.4.6",
"storybook-addon-vue-slots": "^0.9.21",

Thank you for all your hard work 🙏
I'll try to get some time to fix this.

@BigKamil5
Copy link

The same error occurs when trying to write custom mdx docs to component

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants