oliviertassinari / babel-plugin-transform-react-remove-prop-types

Remove unnecessary React propTypes from the production build. :balloon:
MIT License
897 stars 61 forks source link

Cannot read property 'type' of undefined at memberExpressionRootIdentifier #169

Closed oliviertassinari closed 5 years ago

oliviertassinari commented 5 years ago

The issue was first reported by @av-dev in https://github.com/facebook/create-react-app/issues/5312. It seems to be coming from #158. @lencioni Any idea?

Reproduction

lencioni commented 5 years ago

On phone at the moment but maybe it is getting tripped up by the nested object with the computed properties that are also member expressions?