Adding socket.io to a Node.js/Typescript project -
my project created vs 2017 typescript basic node.js expresss 4 application template. added socket.io
v2.0.3 via npm. can compile. moment added @types/socket.io
1.4.30, can't build anymore. there 97 errors, in node_modules/@types/node/index.d.ts , scripts/typings/node/node.d.ts.
what have done wrong?
sample errors:
build:subsequent variable declarations must have same type. variable 'extensions' must of type 'any', here has type 'nodeextensions'.
and lots of duplicate identifier
:
build:duplicate identifier 'buffer'.
others:
build:'bufftype' referenced directly or indirectly in own type annotation.
build:interface 'server' cannot simultaneously extend types 'server' , 'eventemitter'.
Comments
Post a Comment