TypeError: Converting circular structure to JSON when trying to POST request

前端 未结 6 1023
星月不相逢
星月不相逢 2021-02-12 15:34

I am getting the error in the title and here is the full stack trace, i am not sure what it is, any insight is welcomed!

browser_adapter.js:84 EXCEPTION: Error i         


        
6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-12 16:13

    The error seems to be due to the fact that i was trying to stringify the entire myForm object where as what i wanted was to stringify only the values

    the correct syntax

    let Form = JSON.stringify(this.myForm.value);
    

提交回复
热议问题