Skip to content

error TS2503: Build: cannot find namespace 'NodeJS'. #58

Closed
@ferdiozturk

Description

@ferdiozturk

Using the VS2015 VSTS extension project template from here:
https://visualstudiogallery.msdn.microsoft.com/a00f6cfc-4dbb-4b9a-a1b8-4d24bf46770b

plus vso-node-api (because I need impersonation as service account in my extension)

  1. npm i vso-node-api in my project folder
  2. typings i dt~node --global --save

vso-node-api seems not to know NodeJS typedef:

<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(8,93): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(32,113): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(35,64): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(39,89): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(83,93): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(299,113): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(323,64): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\BuildApi.d.ts(351,89): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\FileContainerApi.d.ts(6,31): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\FileContainerApi.d.ts(10,31): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\FileContainerApi.d.ts(11,75): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(11,159): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(12,128): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(13,141): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(17,93): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(28,136): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(29,183): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(87,159): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(95,128): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(103,141): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(122,93): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(184,136): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GalleryApi.d.ts(194,183): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(7,122): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(8,104): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(9,118): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(23,306): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(25,303): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(26,302): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(77,139): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(100,122): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(109,104): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(119,118): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(247,306): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(275,303): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(289,302): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\GitApi.d.ts(712,139): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\HttpClient.d.ts(1,23): error TS2307: Build:Cannot find module 'http'.
<projectpath>\node_modules\vso-node-api\HttpClient.d.ts(11,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\HttpClient.d.ts(12,115): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(15,100): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(29,116): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(30,58): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(31,130): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(39,105): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(44,93): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(121,100): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(207,116): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(212,58): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(220,130): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(269,105): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\ReleaseApi.d.ts(314,93): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\RestClient.d.ts(16,80): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskAgentApi.d.ts(5,84): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskAgentApi.d.ts(23,114): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskAgentApi.d.ts(45,84): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskAgentApiBase.d.ts(55,116): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskAgentApiBase.d.ts(338,116): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskApi.d.ts(7,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskApi.d.ts(9,159): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskApi.d.ts(12,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskApi.d.ts(43,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskApi.d.ts(63,159): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TaskApi.d.ts(89,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(9,125): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(11,121): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(13,96): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(15,92): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(126,125): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(143,121): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(157,96): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TestApi.d.ts(172,92): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(15,102): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(17,239): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(19,236): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(20,235): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(120,102): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(144,239): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(166,236): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\TfvcApi.d.ts(178,235): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\WorkItemTrackingApi.d.ts(7,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\WorkItemTrackingApi.d.ts(8,66): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\WorkItemTrackingApi.d.ts(9,62): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\WorkItemTrackingApi.d.ts(70,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\WorkItemTrackingApi.d.ts(77,66): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\WorkItemTrackingApi.d.ts(84,62): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\interfaces\common\VsoBaseInterfaces.d.ts(58,57): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\interfaces\common\VsoBaseInterfaces.d.ts(59,115): error TS2503: Build:Cannot find namespace 'NodeJS'.
<projectpath>\node_modules\vso-node-api\interfaces\common\VsoBaseInterfaces.d.ts(71,88): error TS2503: Build:Cannot find namespace 'NodeJS'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions