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

Multiple Export Definitions Error #393

Open
shihlinlu opened this issue Oct 14, 2019 · 2 comments
Open

Multiple Export Definitions Error #393

shihlinlu opened this issue Oct 14, 2019 · 2 comments

Comments

@shihlinlu
Copy link

shihlinlu commented Oct 14, 2019

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  findAllExportedComponentDefinitions

I have seen a previous issue with the similar problem here: #213

I have multiple exports for Redux connected components for ease of testing.

And as more background info, my application utilizes TypeScript, React, and Redux. I am using react-docgen v5.0.0-beta.1

@danez
Copy link
Collaborator

danez commented Oct 25, 2019

The error is only thrown in findExportedComponentDefinition, so if you change the resolver it should not throw.

That means either the resolver option does not work, or something else is wrong.

@hanford
Copy link

hanford commented Jan 4, 2020

@shihlinlu @danez changing the resolver, resolved this for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants