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.

Bugs and bugs around react-docgen

See original GitHub issue

Question

How to pass custom config to react-docgen-typescript-loader ? Description Hi, First of all, I love the project, much nicer experience than with styleguidist!

I’m trying to use it with typescript, which is working fine except PropsTable which renders empty. I had similar issue when working with styleguidist, and solution for that was to pass my custom tsconfig.json to do react-docgen-typescript . Unfortunately I don’t know how to do that with docz, I made changes locally inside docz code so react-docgen-typescript-loader reads my config and it works perfectly, but it’s not a solution 😃 Is there a way to do that via modifyBundlerConfig ? Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:30 (10 by maintainers)

github_iconTop GitHub Comments

15reactions
ondrejbartascommented, Jan 16, 2019

@pedronauck Hi when do you think you will be releasing v0.14?

12reactions
pedronauckcommented, Dec 21, 2018

In the next release (v0.14) I’ll introduce a new way to parse props using react-docgen. Instead of using a babel plugin for prop-types and a loader for typescript, everything now is centralized in a process using data server:

https://github.com/pedronauck/docz/blob/v0.14/core/docz-core/src/states/props.ts

With these changes, I think that we will improve a lot the performance since all props extracting logic will not belong to webpack anymore.

I’ll finish the v0.14 that will have some other improvements, then I came back here to test and close this issue 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-docgen-typescript-plugin | Yarn - Package Manager
A webpack plugin to inject react typescript docgen information. ... Bug Fix. Update typescript and fix deprecation warnings #70 (a.savoskin@kvarta.ru) ...
Read more >
ArgsTable breaks if the component's displayName doesn't ...
Describe the bug If a story for a React component renders an ArgsTable block, and the component's displayName doesn't match its export name, ......
Read more >
@storybook/builder-vite - NPM Package Overview - Socket
Docgen is supported in vue and react, and there are two docgen options when using react ... Have a look at the GitHub...
Read more >
@storybook/vue - Awesome JS
React-vite: Pin react-docgen version #20300 ... Typescript: Fix bug with meta not working well as generic parameter for StoryObj #20165; SvelteKit: Support ...
Read more >
Creating a React Component Library With Typescript Using ...
It also means that issues such as bug fixes and adding new ... yarn add -D react-docgen-typescript// Adds documentation to components
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