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 6.3 stopped respecting some custom reactDocgenTypescriptOptions

See original GitHub issue

Hello.

I’ve discovered that after updating from 6.2.9 to 6.3.0.

Describe the bug Specifing custom values for some docgen options (according to the docs) isn’t working any more. E.g. setDisplayName: false has no effect.

To Reproduce Sorry, I don’t know how to reproduce it outside of my project. But you can see in the storybook’s code that some values are hardcoded now. Changing these lines fixes my issue.

System

  System:
    OS: Linux 4.19 Ubuntu 20.04.1 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Binaries:
    Node: 14.15.3 - ~/.config/nvm/14.15.3/bin/node
    Yarn: 1.22.4 - /mnt/c/Program Files (x86)/Yarn/bin/yarn
    npm: 6.14.9 - ~/.config/nvm/14.15.3/bin/npm

Additional context The bug has two levels: these hardcoded values and another bug with custom options in react-docgen-typescript-plugin@1.0.0. Since 6.3 uses the fork @storybook/react-docgen-typescript-plugin, it has to address both of them.

BTW, can’t find the source of @storybook/react-docgen-typescript-plugin to send a PR.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
shilmancommented, Jun 29, 2021

@zhzz Nice! I don’t know when that will be released, but when it is we’ll upgrade our dependency. Thanks!!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular: Storybook 6.3 stopped supporting Cyrillic in title ...
Describe the bug Our project was updated to Angular 12, Storybook stopped working after that. I concluded that support is only expected in...
Read more >
storybook-addon-react-docgen
Rendering a Custom Table. The TableComponent option allows you to define how the prop table should be rendered. Your component will be rendered...
Read more >
Storybook 6.3 - JS.ORG
You can fully customize all shortcuts from the Keyboard shortcuts settings page. Reuse stories in your tests. Stories are tests, but for UI ......
Read more >
TypeScript
The configuration provided above will remove any props from any third-party ... reactDocgen: 'react-docgen-typescript', reactDocgenTypescriptOptions: ...
Read more >
Configure Storybook
Tip: Customize your default story by referencing it first in the `stories` array ... When Storybook starts, it will look for any file...
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