Skip to content

Cannot read property 'name' of undefined in isPragmaComponentWrapper #2124

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

Closed
CrOrc opened this issue Jan 8, 2019 · 1 comment
Closed

Cannot read property 'name' of undefined in isPragmaComponentWrapper #2124

CrOrc opened this issue Jan 8, 2019 · 1 comment

Comments

@CrOrc
Copy link
Contributor

CrOrc commented Jan 8, 2019

Error existed in versions 7.12.0-7.12.1.
Version 7.12.2 was ok.
It's present again in version 7.12.3.

TypeError: Cannot read property 'name' of undefined
at Object.isPragmaComponentWrapper (<project_root>/node_modules/eslint-plugin-react/lib/util/Components.js:405:66)

@CrOrc CrOrc changed the title Cannot read property 'name' of undefined Cannot read property 'name' of undefined in isPragmaComponentWrapper Jan 8, 2019
@CrOrc
Copy link
Contributor Author

CrOrc commented Jan 8, 2019

CrOrc added a commit to CrOrc/eslint-plugin-react that referenced this issue Jan 8, 2019
In isPragmaComponentWrapper check name of callee object if awailable.

Fixed jsx-eslint#2124
ljharb pushed a commit to CrOrc/eslint-plugin-react that referenced this issue Jan 8, 2019
In isPragmaComponentWrapper check name of callee object if available.

Fixes jsx-eslint#2124
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant