Skip to content

"Node must be provided when reporting error if location is not provided" error in 7.12.3 #2127

@the-spyke

Description

@the-spyke

Linting this code with 7.12.3 gives me an error "AssertionError [ERR_ASSERTION]: Node must be provided when reporting error if location is not provided":

import React from "react"; export default class Controller extends React.Component { handleAdd = id => { this.setState((state, { name }) => { const item = this.buildItem(id); }); }; }

Looks similar to #2095. Works fine in 7.11.0.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions