Uncaught Error: A cross-origin error was thrown. React doesn't have access to the actual error object in development

前端 未结 14 1152
一整个雨季
一整个雨季 2020-12-20 11:08

Everytime I submit a zone, It display this error \'Uncaught Error: A cross-origin error was thrown. React doesn\'t have access to the actual error object in development\' It

相关标签:
14条回答
  • 2020-12-20 12:06

    Clearing token in local storage helped me.

    0 讨论(0)
  • 2020-12-20 12:06

    You may be are getting this error for this line:

    console.log('SubmitZone: ' + JSON.stringify(this.state.zone))
    

    You are trying to cast this.state.zone into a string typed value when may be, it is null, empty or it's not well formatted

    0 讨论(0)
提交回复
热议问题