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.

@storybook/addon-docs: Yet another "No code available"

See original GitHub issue

I am not sure when this happened, but for @storybook/addon-docs I get “No code available”. It worked some time ago though.

Version: 6.1.21

main.js:

module.exports = {
  stories: ['./stories/**/*.@(js|mdx)'],
  addons: ['@storybook/addon-docs', '@storybook/addon-storysource'],
};

(I tried removing @storybook/addon-storysource, as suggested over here, but without success.)

┆Issue is synchronized with this Asana task by Unito

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
jmtt89commented, Mar 3, 2022

using Angular 13.2.5 and Storybook 6.4.19 still not work, my files calling “right” way

All stories load correctly but in docs tab show “No code available” when click on some control or “reset control” the code show correctly.

maybe is because my project structure?

my-proj
|  src
|  .storybook
|  |  main.js
|  stories
|  |  feature-a
|  |  |  feature-a.stories.tsx
|  |  feature-b
|  |  |  feature-b.stories.tsx

my .storybook/main.js file

module.exports = {
  "stories": [
    "../stories/**/*.stories.mdx",
    "../**/*.stories.@(js|jsx|ts|tsx)",
  ],
  "addons": [
    "@storybook/addon-links",
    "@storybook/addon-essentials",
    "@storybook/addon-interactions",
    "storybook-addon-designs",
  ],
  "framework": "@storybook/angular",
  "core": {
    "builder": "webpack5"
  }
}

3reactions
pravbesedacommented, Apr 6, 2021

I have the same problem (angular 11)

  1. ng new test-app
  2. cd test-app
  3. npx -p @storybook/cli sb init
  4. npm run storybook

On Docs tab of predefined Stories I see “No code available”. The “Show code” button is unlocked after clicking on “Reset controls” or after some switching between Stories.

The problem is reproducible on versions 6.2.1-6.2.3.

Please help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

storybook/addon-docs: Yet another "No code available" #14463
On Docs tab of predefined Stories I see "No code available". The "Show code" button is unlocked after clicking on "Reset controls" or...
Read more >
storybook/addon-docs - npm
DocsPage is a zero-config aggregation of your component stories, text descriptions, docgen comments, props tables, and code examples into clean, ...
Read more >
ArgsTable - Storybook - JS.ORG
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
storybook-addon-react-docgen
A storybook addon to display react docgen info. This addon is a drop in replacement for the "info" addon's prop table functionality. Rather...
Read more >
MDX - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
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