Skip to content

esModuleInterop:true breaks intellisense #40991

Closed
@gc

Description

@gc

Issue Type: Bug

These tsconfig.json values are completely breaking intellisense for my project:

		"module": "commonjs",
		"moduleResolution": "node",

When I take these out, and restart ts server, it works fine, if i put them back in and restart ts server, it stops working.

Observed result:
When typing in something in code, such as Time, which vscode should be suggesting me to import from somewhere, no dropdown appears at all, and if I do ctrl+space, it says no suggestions. Again, I remove those 2 config options, restart ts server, and it works fine.

Expected result:
Should show a dropdown pretty much in 99% of cases when im typing, doesnt show a dropdown AT ALL.

Reproduction:
You could try use my repo to reproduce: https://github.com/oldschoolgg/oldschoolbot

Note that, these 2 config options come from the eslint-config-bamboo that im extending in the tsconfig.json there, however I am using these 2 tsconfigs locally for debugging this: https://gist.github.com/gc/fa1110fa28e7a66ac0b1ee42a73435a6

to test that its working, go to index.ts and type in the word roll and/or Time - both should definitely be giving suggestions.

removing these 2 options however breaks other stuff, and isnt a viable solution for me to use. hopefully someone canhelp me find the root cause.

note: I have tried completely, entirely nuking vscode (including all my settings) from my PC, clearing all node_modules and caches, and reinstalling - and that didnt fix it.

VS Code version: Code 1.49.3 (2af051012b66169dde0c4dfae3f5ef48f787ff69, 2020-10-02T17:57:01.595Z)
OS version: Windows_NT x64 10.0.18362

System Info
Item Value
CPUs AMD Ryzen 5 2600X Six-Core Processor (12 x 3593)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.93GB (6.45GB free)
Process Argv --crash-reporter-id 693da592-757d-488c-9730-a967bac12a33
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
monokai-charcoal-high-contrast 74t 3.2.0
vscode-eslint dba 2.1.8
prettier-vscode esb 5.7.1
vscode-styled-components jpo 0.0.32
material-icon-theme PKi 4.3.0
ayu tea 0.20.1
material-theme zhu 3.9.1

(1 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: Completion ListsThe issue relates to showing completion lists in an editorFix AvailableA PR has been opened for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions