EQuimper / twitter-clone-with-graphql-reactnative

164 stars 71 forks source link

(0 , _subscriptionsTransportWs.addGraphQLSubscriptions) is not a function #35

Closed gHashTag closed 7 years ago

gHashTag commented 7 years ago

It's me again Emanuel =) Why do I have this error? At the moment, my code

2017-09-20 17 52 30 simulator screen shot 20 2017 17 49 19

EQuimper commented 7 years ago

can I see your code what is your repo ? :)

gHashTag commented 7 years ago

Here :) 2017-09-20 23 23 13

EQuimper commented 7 years ago

Ok look like you dont save package in your packages.json https://github.com/gHashTag/twitter/blob/part15/mobile/src/package.json so hard to tell but did you install subscriptions-transport-ws ? npm i -S subscriptions-transport-ws

gHashTag commented 7 years ago

I cleaned the code and install npm i -S subscriptions-transport-ws , but now I see this error: My code here simulator screen shot 21 2017 0 49 33

gHashTag commented 7 years ago

in version 0.9.0 stopped using addGraphQLSubscriptions https://github.com/apollographql/subscriptions-transport-ws/issues/275 made a rollback to 0.8.2 and earned Thank you

chandlervdw commented 7 years ago

react-apollo@0.8.3 is the last version that includes addGraphQLSubscriptions