atanasster / storybook-addon-deps

A storybook addon to add a dependencies tree exporer tab.
https://atanasster.github.io/storybook-addon-deps/?path=/docs/design-system-avatarlist--short
MIT License
59 stars 3 forks source link

DependanciesTable not working in MDX stories. #9

Closed maccapakka closed 4 years ago

maccapakka commented 4 years ago

Loving this plugin.

The DependanciesTable works fine when stories are written in CSF format but when writing stories in MDX format and importing the <DependanciesTable of={component}> component.

The table shows up but dependencies / dependants are never found.

Please halp

atanasster commented 4 years ago

Thanks for the feedback.

I do have an mdx story example https://github.com/atanasster/storybook-addon-deps/blob/master/.storybook/stories/Button.stories.mdx

Any chance you can check what is different in your setup?

maccapakka commented 4 years ago

Thanks for the fast reply!

It was the following;

Doesn't Work <Meta title="3. Components/Bullet" component: {Bullet} />

Works <Meta title="3. Components/Bullet" parameters={{component: Bullet }} />

danmindru commented 4 years ago

@macca-pakka seeing the same. Your suggestion to use parameters also worked for me. storybook @ 5.3.18 addon-deps @ 2.0.0

atanasster commented 4 years ago

@danmindru @macca-pakka thanks for the patience.

It seems this is not fixed in storybook6 beta.0.

There is a new version 2.0.1 of the plugin that is brought up to date with the beta - can you please try and open a new issue if it still does not work for you.