Skip to content
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

"Cannot read property 'type' of null" in valid-aria-role.js #4

Closed
lencioni opened this issue Apr 5, 2016 · 3 comments
Closed

"Cannot read property 'type' of null" in valid-aria-role.js #4

lencioni opened this issue Apr 5, 2016 · 3 comments
Assignees
Labels

Comments

@lencioni
Copy link
Contributor

lencioni commented Apr 5, 2016

v0.5.0

with the following JSX

function Foo() {
  return <Bar baz />;
}

I get the following error:

Cannot read property 'type' of null
TypeError: Cannot read property 'type' of null
    at EventEmitter.JSXAttribute (/path/to/project/node_modules/eslint-plugin-jsx-a11y/lib/rules/valid-aria-role.js:27:43)

However it works if I use this instead:

function Foo() {
  return <Bar baz={false} />;
}
@beefancohen beefancohen added the bug label Apr 5, 2016
@beefancohen beefancohen self-assigned this Apr 5, 2016
@lencioni
Copy link
Contributor Author

lencioni commented Apr 5, 2016

Thanks for the speedy fix and release!

@beefancohen
Copy link
Contributor

no problem! thanks for reporting. waiting for travis to pass before i publish, may be a few mins.

@beefancohen
Copy link
Contributor

v0.5.1 published 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants