insidesherpa / JPMC-tech-task-3-PY3

8 stars 176 forks source link

failed to compile : 'ServerRespond' is not exported from './DataStreamer' #21

Closed mbbharti closed 4 years ago

mbbharti commented 4 years ago

Capture1

mbbharti commented 4 years ago

Capture2 now getting this error..

karteek2000 commented 4 years ago

@mbbharti did u fix the first error, if so please explain me

harsha14gupta commented 4 years ago

Add this to DataStreamer.tsx : import { ServerRespond } from "./DataStreamer"; Add this to App.tsx: import DataStreamer, { ServerRespond } from './DataStreamer';

JaideepVerma commented 4 years ago

Add this to DataStreamer.tsx : import { ServerRespond } from "./DataStreamer"; Add this to App.tsx: import DataStreamer, { ServerRespond } from './DataStreamer';

i m still getting the error as : serverRespond is not exported from ./DataStreamer

preston4896 commented 4 years ago

I am getting the same issue too.

vikivanov commented 4 years ago

Make sure you use serverResponds[0] and serverResponds[1] and NOT serverRespond[0] and serverRespond[1] like it is in the instructions. Also, be careful to use .top_ask.price and .top_bid.price and NOT .top_ask_price and .top_bid_price.

Those were the mistakes I made initially and got the same error. Hope that helps.