react-docgen
react-docgen copied to clipboard
A CLI and library to extract information from React component files for documentation generation purposes.
version react-dcogen 5.0.0-beta.1 source :  generate json:  how to fixed? @sophiebits @wincent @zpao @tomocchino @threepointone
I'm getting the following error when I run my `buildDocs` script: ``` .../resolver/findExportedComponentDefinition.js:107 throw new Error(ERROR_MULTIPLE_DEFINITIONS) ``` This error still occurs even after I add the resolver option: ``` --resolver...
In my React App, I have components which pass receive properties but just pass them as is to their child component. The parent component sort of extends the child component...
Importing prop types is a fairly common use case which doesn't appear to be possible at this stage. Any plans to support this pattern? Example: ``` javascript // defaultPropTypes.js import...
It doesn't seem possible for third party resolvers or handlers, use different versions of ast-types with react-docgen since it's all operating on the same ast. If someone uses the latest...
I'm attempting to migrate react-styleguidist from v8 -> v9 and noticed that `[email protected]` and beyond starts showing errors in the terminal: ```bash You can now view your style guide in...
Hi guys! React Scripts already support CSS Modules https://create-react-app.dev/docs/adding-a-css-modules-stylesheet When I tried creating documentations via react-docgen. This error is displayed: ``` READING FILE: D:\workspaces-mobilize\steamfabuilib\src\components\CampaignMarketingForm\CampaignMarketingForm.js D:\workspaces-mobilize\steamfabuilib\src\components\Styles\emoji-mart.module.css:1 (function (exports, require, module, __filename,...
Some HOCs aren't correctly parsed when they're just calling a function on an imported component. For example, exporting a HelloButton component that just exports an imported Button component wrapped in...
Similar to #177 but a slightly different scenario... Given a HOC method like so: ``` import { bool } from 'prop-types'; const withSomeExtraProps = Wrapped => { class HigherOrderComponent extends...
Presently the repo lacks an issue template which is good to have especially while submitting bug reports. With that being said, IMO we could include a dedicated `--info` flag which...