Skip to content

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

Closed
@lencioni

Description

@lencioni

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} />;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions