MSVC 2017 sets up node's type definitions in Scripts/typings/node. When I install socet.io along with types it wants to pick up types for node from @types/node (which seems like a reasonable place) and installs the @types/node as a dependency.
This causes all sorts of drama in the project. So I changed the /// reference path for the socket.io index.d.ts to point to Scripts/typings/node and this works. (btw... how do you specify a relative path for a reference path I can't figure it out. The system seems to always mangle the path I want to use).
Is there a way of getting visual studio to pick up node typings from the node_modules/@types directory and not Scripts/typings/node?
Cheers O.
via Ollie
No comments:
Post a Comment