Skip to content

Potential issue with findAllComponentDefinitions #331

Closed
@fkling

Description

@fkling

We have a component that looks something like this:

/**
 * @flow
 */
import * as React from 'react';

type Props = $ReadOnly<{|
  tabs: $ReadOnlyArray<string>,
|}>;

const TetraAdminTabs = React.memo<Props>((props: Props) => (
  <div></div>
));

export default TetraAdminTabs;

When I run react-docgen normally I get the information for the component. If I use --resolver findAllComponentDefinitions. I get Error: No suitable component definition found.

I think findAllComponentDefinitions should be able to find the default exported one.


I'll investigate this myself but just wanted to post to keep track of it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions