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
TypeError: Cannot read property 'name' of null #2840
Comments
While it's a very bad practice for debuggability to have an unnamed component, we certainly shouldn't crash on it. |
Which rule is this crashing on? |
Not sure, I think I had all the recommended rules enabled (and only disabled a few which I don't need). |
Could you provide the full stack trace? |
|
The whole file is something like this. Line 260 would be the line with export default class extends React.PureComponent {
render() {
return <Card />;
}
}
const Card = (() => {
return React.memo(({ }) => (
<div />
));
})(); |
hmm, ok thanks :-) i'll try to make a repro case. |
The error is thrown in getDetectedComponents(), specifically line
return val.node.id.name
, whereval.node
is a ClassDeclaration with a null id.The text was updated successfully, but these errors were encountered: