apollographql / subscriptions-transport-ws

:arrows_clockwise: A WebSocket client + server for GraphQL subscriptions
https://www.npmjs.com/package/subscriptions-transport-ws
MIT License
1.52k stars 342 forks source link

Error TS1086: An accessor cannot be declared in an ambient context. #779

Closed PunkHaz4rd closed 2 years ago

PunkHaz4rd commented 4 years ago

When building/running my angular project I get this error : ERROR in node_modules/subscriptions-transport-ws/dist/client.d.ts(73,9): error TS1086: An accessor cannot be declared in an ambient context. I don't get it in another project which also uses this lib the only difference is the failing project uses the libs "aws-amplify" & "aws-amplify-angular" Is this it ? Is there a fix where I get to keep either libs ?

evandavey commented 4 years ago

I had a similar problem, upgrading typescript to 3.9.7 made this go away.