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

plugin errors when parsing "empty" types #213

Closed
kevinbarabash opened this issue Apr 16, 2019 · 2 comments
Closed

plugin errors when parsing "empty" types #213

kevinbarabash opened this issue Apr 16, 2019 · 2 comments

Comments

@kevinbarabash
Copy link

Specifically the error I get is:

Error: babel-plugin-flow-react-proptypes: Encountered an unknown node in the type definition. Node: {"type":"EmptyTypeAnnotation","start":541,"end":546,"loc":{"start":{"line":22,"column":11},"end":{"line":22,"column":16}}}

I don't think prop-types has a type that makes sense so I think just ignoring this type makes sense.

@brigand
Copy link
Owner

brigand commented Apr 16, 2019

Thanks for the report. For reference, example code that caused the issue:

type Props = { foo: empty }

Fixed in 25.1.0.

@kevinbarabash
Copy link
Author

Thanks for the quick fix.

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

2 participants