insidesherpa / JPMC-tech-task-2-PY3

29 stars 349 forks source link

Failed to compile, error in the Render section in App.tsx file #545

Open ApurvP13 opened 2 years ago

ApurvP13 commented 2 years ago
Screenshot 2021-11-01 at 17 02 18

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.

Screenshot 2021-11-01 at 17 03 11

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?

sainathreddy2203 commented 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.