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"
我正在使用我的reactjs代码和babel一起使用,并且遇到了这个奇怪的难以追查的问题:“解析错误:复杂的绑定模式需要初始化值”
For this line of my react code: var {children={}, Activator={}} = this.props
对于我的反应代码的这一行:var {children = {},Activator = {}} = this.props
Does anyone know what this means or how to make it go away?
有谁知道这意味着什么或如何让它消失?
Thanks very much.
非常感谢。
1 个解决方案
#1
0
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.
我上次遇到这个问题时,是由于一些不正确的解构语法。您的问题可能与解析变量赋值中的解构有关。
#1
0
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.
我上次遇到这个问题时,是由于一些不正确的解构语法。您的问题可能与解析变量赋值中的解构有关。