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/docs doesn't use the loaded compodoc .json file

See original GitHub issue

Describe the bug After following the https://github.com/storybookjs/storybook/tree/next/addons/docs/angular instructions. Storybook fails to show the component information in the Docs tab.

It loads the json file because setCompodocJson is called and that sets the global variable image

But it isn’t used when selecting the doc tab.

image

Am i missing something?

To Reproduce Steps to reproduce the behavior:

  1. open / extract files cs-shared - Copy.zip
  2. run yarn install
  3. run yarn storybook
  4. See error

Expected behavior That the generated compodoc information is used to show the compodoc generated props

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:23 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
matheocommented, Jun 11, 2020

Steve’s repro is incomplete tho, the AppComponent stories.ts file just exports the CSF metadata and no story. The other stories are from @storybook/angular/demo components, and those doesn’t have properties extracted by compodoc.

@sl-benjamindupuy we will need a repro with the configuration that you’re using to see if there’s a missing detail.

1reaction
shilmancommented, Jan 21, 2020

Congratulations!!! 🎉 (on both fronts, but more on the twins – that’s amazing!!!)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Empty documentation.json in Compodocs + Storybook + ...
We have both files, but I think compodoc does not understand that tsconfig.app.json ... Use tsconfig.base.json instead of tsconfig.json.
Read more >
storybook-addon-compodoc
In your config.js Storybook file provide url where your Compodoc generated documentation is deployed using configureCompodoc and add global decorator using ...
Read more >
angular/angular-cli - Gitter
Hi, can someone tell me how angular-cli is telling webpack to use the different environment files. I under stand how they determine the...
Read more >
compodoc - Bountysource
For the moment, Compodoc ignores .spec files. ... yarn storybook yarn run v1.22.15 $ ng run cioplenu:storybook compodoc -p .storybook/tsconfig.json -d ...
Read more >
webpack < 5 used to include polyfills for node.js core modules ...
I have tried using a custom webpack.config, messed with tsconfig.json ... doesn't exist or is not a directory \node_modules\@storybook\node_modules doesn't ...
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