Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass configuration to react-docgen? #15

Closed
bensampaio opened this issue Apr 8, 2020 · 2 comments
Closed

How to pass configuration to react-docgen? #15

bensampaio opened this issue Apr 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@bensampaio
Copy link

I want to use the findAllComponentDefinitions resolver for react-docgen but I don't understand where can I configure this. In my components.json file I tried the following:

"plugins": [
    {
      "name": "@zeplin/cli-connect-react-plugin",
      "config": {
        "resolver": "findAllComponentDefinitions"
      }
    }
  ],

But this didn't change anything. I still get this error: Multiple exported component definitions found.

@yuqu yuqu added the enhancement New feature or request label Apr 8, 2020
@yuqu
Copy link
Contributor

yuqu commented Apr 8, 2020

Hi Bruno, thanks for the feedback. I'll be adding the ability to pass react-docgen configuration parameters from CLI after I make sure that the code generation template can handle multiple components at once.

@yuqu
Copy link
Contributor

yuqu commented Jan 24, 2021

Fixed in v1.1.0.

@yuqu yuqu closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants