question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Addon-docs: Oh no! The source is not available.

See original GitHub issue

I tried the new Storybook addon-docs in Alpha version 35. Everything works as expected! However, I don’t see the source code of the Story. I guess it isn’t implemented yet, is it? If it is implemented, do I need to add something to my story?

Screenshot 2019-07-03 at 14 03 35

storiesOf('1. Atoms|01. Buttons/1. ContentButton', module)
  .addParameters({ component: ContentButton })
  .add('01. default', () => {
    const props = {
      label: text('label', 'Button'),
      onClick: () => {},
      selected: boolean('selected', false),
      disabled: boolean('disabled', false),
    };

    return <ContentButton {...props} />;
  });

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
benjamingeorgecommented, Jul 24, 2019

Wow. Thats embarrassing. Thank you.

1reaction
benjamingeorgecommented, Jul 23, 2019

Sure here is a pared down version https://github.com/benjamingeorge/ts-addon-docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup CSF + MDX stories with @storybook/addon-docs - GitLab
Migrate existing stories to @storybook/addon-docs . ... Most (~70%) of the content in design.gitlab.com is not available in @gitlab/ui and ...
Read more >
storybook/addon-docs
DocsPage pulls information from your stories, components, source code, and story metadata to construct a sensible, zero-config default. Click on ...
Read more >
storybook/components@6.5.14
SOURCE_UNAVAILABLE = 'Oh no! The source is not available.' enum StoryError.
Read more >
Storybook - An alternative approach - Paul Scanlon
This isn't to say my suggestions are better but there are a few ... npm install @storybook/addon-actions @storybook/addon-docs --save -dev.
Read more >
Using Storybook with Vue single file components
I found yet another way to improve your approach, by linking your source loader into addon-docs. I just modified this part on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found