Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tsserverlibrary.d.ts throws error TS2304: Cannot find name 'Comparison' #16782

Copy link
Copy link
@Quramy

Description

@Quramy
Issue body actions

TypeScript Version: 2.4.1

Code

import * as ts from "typescript/lib/tsserverlibrary";
let factory: ts.server.PluginModuleFactory;

Compiling the above code, a compilation error, error TS2304: Cannot find name 'Comparison', occurs.

And my tsconfig.json is the following :
(It's just generated one by tsc --init)

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "strict": true
  }
}

Expected behavior:

No compilation error.

Actual behavior:

tsc throws the following error:

node_modules/typescript/lib/tsserverlibrary.d.ts(3845,181): error TS2304: Cannot find name 'Comparison'.
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptA bug in TypeScript

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.