Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Namespace 'NodeJS' has no exported member 'Timeout'

When i run code i get this error

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

I am using angular7

like image 578
Dragon Avatar asked May 23 '19 04:05

Dragon


2 Answers

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.

like image 102
Hopcyn Avatar answered Nov 02 '22 12:11

Hopcyn


if you're using yarn, just run

yarn add --dev @types/node

to fix your package.json

like image 44
Ali Avatar answered Nov 02 '22 13:11

Ali