-
Notifications
You must be signed in to change notification settings - Fork 61
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
It seems it does not work when importing modules #14
Comments
For the record, I'm using React 15, and I've spotted the issue down to if (superClass.matchesPattern('React.Component') || superClass.matchesPattern('Component')) {
path.remove();
} In if (!this.isMemberExpression()) return false; Changing |
@romainneutron Thanks for this feedback. import React, { Component } from 'react';
export default class MyComp extends Component {
static propTypes = {
name: React.PropTypes.object
};
render() {
//...
}
} That sounds like the right direction. |
I confirm @oliviertassinari , it works better using your snippet |
@romainneutron I have just merged a fix. |
Thanks for your fast response |
If I use this syntax, it works perfectly:
however, it does not work like this:
The text was updated successfully, but these errors were encountered: