atlassian / atlassian/extract-react-types

Error: Missing converter for X

Open
#150 0 comments 0 reactions 0 assignees View on GitHub
💬 discussion
Dominant language
JavaScript
Stars
188
Forks
31
PR merge metrics
No merged PRs in 30d

Description

This is a common issue with extract-react-types (ERT), which essentially means that:

**You are using a language feature that ERT is not familiar with**

> The way ERT evaluates complex types and language specific features is largely a manual process. We have to manually tell ERT how to interpret things like extends and React.FC, so inevitably there will be things that we don't support or haven't considered.

For a list of all supported and unsupported features, see this issue: https://github.com/atlassian/extract-react-types/issues/149

For example purposes, consider the scenario that the `unknown` keyword is not known to ERT. When the code below is parsed, it will error stating: `Missing converter for: TSUnknownKeyword `

```jsx
interface FooProps {
// Docs about the bar property here
bar: unknown;
}

const Foo = props => null;
```

If you are experiencing this issue, please leave a comment below or consider raising a pull request.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.