I'm using Ionic2 and socket.io
When I do ionic serve I get this error in the terminal:
TypeScript error: typings/globals/socket.io/index.d.ts(357,30): Error TS2503: Cannot find namespace 'NodeJS'.
TypeScript error: typings/globals/socket.io/index.d.ts(739,28): Error TS2503: Cannot find namespace 'NodeJS'.
Node version is 4.2.6
My typings.json looks like this:
{
"dependencies": {},
"devDependencies": {},
"globalDependencies": {
"es6-shim": "registry:dt/es6-shim#0.31.2+20160602141504",
"socket.io": "registry:dt/socket.io#1.4.4+20160317120654",
"socket.io-client": "registry:dt/socket.io-client#1.4.4+20160317120654"
}
}
If I open typings/globals/socket.io/index.d.ts (with sublimeText) I see this :

As you can see also sublimeText complains about NodeJS namespace.