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.

docs.source.type = 'code' possible regression on SB 6.1.1 (React + TS)

See original GitHub issue

Describe the bug when docs.source.type value is set to code, storybook says that code is not available. With dynamic | auto it is fine.

To Reproduce Peek 20-11-2020 11-34

Expected behavior Same behaviour as described here : https://storybook.js.org/docs/react/writing-docs/doc-blocks (To visualize the source as code, you’ll need to include the code option in the docs.source.type parameter)

System Ubuntu / SB 6.1.1 / React 17 + TS 4.0.5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mcookdevcommented, Feb 24, 2021

I am also having this issue when using addon-storysource along with setting docs > source > type: ‘code’ on a story.

I followed the suggestions in the storysource readme, but it did not work.

0reactions
shilmancommented, Nov 25, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

storybook/addon-docs - npm
DocsPage pulls information from your stories, components, source code, and story metadata to construct a sensible, zero-config default.
Read more >
Text - GovInfo
The Code of Federal Regulations is prima facie evidence of the text of the original documents (44 U.S.C. 1510). HOW TO USE THE...
Read more >
NUREG/CR-6372 UCRL-ID
Copies of Industry codes and standards used in a substantive manner in the NRC regulatory process are main- tained at the NRIC Library....
Read more >
Roundabouts: An Informational Guide
along with appropriate parameters to use for each type of roundabout. ... Source: The Highway Code (UK) (9), converted to right-hand drive. CONTENTS ......
Read more >
Quality Assurance Handbook for Air Pollution Measurement ...
existing sources for pollutants where the area the source is located is in ... Guidance - This QA Handbook as well as many...
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