How to resolve TypeError: Cannot convert undefined or null to object

后端 未结 9 1257
生来不讨喜
生来不讨喜 2020-11-28 05:44

I\'ve written a couple of functions that effectively replicate JSON.stringify(), converting a range of values into stringified versions. When I port my code over to JSBin an

9条回答
  •  情歌与酒
    2020-11-28 06:35

    In my case I had an extra pair of parenthesis ()

    Instead of

    export default connect(
      someVariable
    )(otherVariable)()
    

    It had to be

    export default connect(
      someVariable
    )(otherVariable)
    

提交回复
热议问题