Apollo-angular: 'NodeJS' has no exported member 'Timeout'.

Created on 23 May 2019  ·  13Comments  ·  Source: kamilkisiela/apollo-angular

Hello, When i added Apollo to my project this error was showed.

ERROR in node_modules/@wry/context/lib/context.d.ts(6,84): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'.

i 「wdm」: Failed to compile.

Versions
2.6

in progress

Most helpful comment

upgrading @types/node to the latest version did the trick

All 13 comments

image
image

same issue here - it is with angular + apollo.

same issue here - it is with angular + apollo.

Angular 7 ?

Yes

On May 23, 2019, at 5:24 PM, RmilaWeb notifications@github.com wrote:

same issue here - it is with angular + apollo.

Angular 7 ?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Also experiencing the same issue. Fresh angular project and ng add apollo-angular.

(A work around for now is just removing node_modules/@wry/context/lib/context.d.ts)

There's an open pull request on @wry here for those wanting to be notified when this is resolved:
https://github.com/benjamn/wryware/pull/5

upgrading @types/node to the latest version did the trick

That's related to apollo-cache-inmemory and not apollo-angular itself. I fixed it, but it's not merged and released yet, here's the ongoing pull request https://github.com/benjamn/wryware/pull/5 and the related issue https://github.com/benjamn/wryware/issues/4.

I'm going to close it so please follow https://github.com/benjamn/wryware/issues/4. I will notify all you guys once it's released :))

upgrading @types/node to the latest version did the trick

Working fine 👍

upgrading @types/node to the latest version did the trick

Working fine

Yeah but it's just a workaround, not a fix.

Same here. It happened to be an issue with the version of the "@types/node"-dependency that was defined in my devDependencies. Upgrading it to the latest version (12.0.2) fixed it for me.

upgrading @types/node to the latest version did the trick

Work for me too thanks dude

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qortex picture qortex  ·  4Comments

chihab picture chihab  ·  4Comments

miquelferrerllompart picture miquelferrerllompart  ·  7Comments

bkinsey808 picture bkinsey808  ·  3Comments

patriknil90 picture patriknil90  ·  7Comments