milesj / babel-plugin-typescript-to-proptypes

Generate React PropTypes from TypeScript interfaces or type aliases.
MIT License
367 stars 25 forks source link

Error: "default" is imported from external module "react" but never used #51

Closed Andrei-Dimitrov closed 3 years ago

Andrei-Dimitrov commented 3 years ago

It looks like this plugin adds default React import, even if there are no propTypes should be added

This is an issue with Rollup when declaring React as an external module

I've created a repl example to demonstrate the issue

Could you please do something with this?

milesj commented 3 years ago

Will be fixed in next version.