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

Error: Missing converter for X #150

Open
danieldelcore opened this issue Jan 18, 2021 · 0 comments
Open

Error: Missing converter for X #150

danieldelcore opened this issue Jan 18, 2021 · 0 comments

Comments

@danieldelcore
Copy link
Contributor

danieldelcore commented Jan 18, 2021

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: #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

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.

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

No branches or pull requests

1 participant