Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Meaning of babel error: "Complex binding patterns require an initialization value"

I'm using linting my reactjs code with babel and am running into this strangely tough to track down issue: "Parsing Error: Complex binding patterns require an initialization value"

For this line of my react code: var {children={}, Activator={}} = this.props

Does anyone know what this means or how to make it go away?

Thanks very much.

like image 997
tnrich Avatar asked Oct 13 '25 08:10

tnrich


1 Answers

The last time I encountered this issue, it was due to some improper destructuring syntax. Your issue might be related to a difficulty in parsing the destructuring in your variable assignment.

like image 179
Mark Arciaga Avatar answered Oct 14 '25 22:10

Mark Arciaga