docs.source.type = 'code' possible regression on SB 6.1.1 (React + TS)
See original GitHub issueDescribe 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
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:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
@benjamin-schneider URGH it’s
addon-docs
andaddon-storysource
stepping on each other.Probably related: https://github.com/storybookjs/storybook/blob/next/addons/storysource/README.md#displaying-full-source
Proposed fix: https://github.com/storybookjs/storybook/issues/12561