Skip to content

IntelliSense not working when esModuleInterop was true and swagger-parser was imported. #40355

@JasonHK

Description

@JasonHK

TypeScript Version: 4.1.0-dev.20200902

Search Terms: tsserver, IntelliSense, VSCode, esModuleInterop, swagger-parser

Code

tsconfig.json:

{
    "compilerOptions": {
        "target": "ES2015",
        "allowSyntheticDefaultImports": true,
        "esModuleInterop": true,
        "moduleResolution": "Node"
    }
}

index.ts:

import SwaggerParser from "swagger-parser";

Expected behaviour:

Suggestions should shown when I press the Tab key.

Actual behaviour:

No suggestions were shown.

2020-09-03_00001

Repository Link:

https://github.com/JasonHK-Reproductions/TypeScript-IntelliSense-not-working-when-esModuleInterop-was-true

Related Issues:

N/A

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions