Open ApurvP13 opened 2 years ago
getDataFromServer() { let x = 0; const interval = setInterval(() =>{ DataStreamer.getData((serverResponds: ServerRespond[]) => { this.setState({ data: serverResponds, showGraph: true, }); }); x++; if (x > 1000) { clearInterval(interval); } }, 100); }
You missed this closing curly bracket.
I am getting this error, even though I didn't touch anything else and followed the instructions as they said. I don't know why I am getting this error.
This error is also the error that I get, it shows a quick fix of importing some module, but then the errors amplify, instead of solving the error. Can anyone please tell me what I am doing wrong or what have I misssed?