react-docgen icon indicating copy to clipboard operation
react-docgen copied to clipboard

A CLI and library to extract information from React component files for documentation generation purposes.

Results 153 react-docgen issues
Sort by recently updated
recently updated
newest added

version react-dcogen 5.0.0-beta.1 source : ![test](https://user-images.githubusercontent.com/35475866/69610658-3419bf80-1067-11ea-9adc-cee8ab1808b5.png) generate json: ![image](https://user-images.githubusercontent.com/35475866/69610481-deddae00-1066-11ea-8933-2ea4a8cf3e2a.png) 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...

improvement

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...

help wanted
idea
needs-discussion

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...

upstream

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...

needs-discussion

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...