-
Notifications
You must be signed in to change notification settings - Fork 12.8k
esModuleInterop:true breaks intellisense #40991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I did some git bisecting, and managed to hugely narrow down the cause. Typescript v |
It’s working for me, though I didn’t run
|
@andrewbranch Thank you for taking the time to look into this
Steps taken:
I noticed |
I think I may have tracked further what the issue is, I pretty much went through and deleted a tonne of files to manually bisect the cause, since obviously its an import causing it, and I think I've deduced its the Heres the code for the package, is something off or wrong with it to be causing this? https://github.com/oldschoolgg/oldschooljs |
Doesn't seem to fix it. I installed the next version, ensured that it was the selected ts version, and it still happens. Logs: https://pastebin.com/raw/MWT4Eea6
|
OK - I think I have found the cause... in my package, I had a class that I copied (& licensed) from someone elses code, and they were doing this weird export: export = Collection as typeof Collection & {
default: typeof Collection;
}; after changing it to just a normal |
Good find! I’ll investigate why it crashes. Thanks for all the help! |
Issue Type: Bug
These tsconfig.json values are completely breaking intellisense for my project:
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 doctrl+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/fa1110fa28e7a66ac0b1ee42a73435a6to test that its working, go to
index.ts
and type in the wordroll
and/orTime
- 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
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
Extensions (7)
(1 theme extensions excluded)
The text was updated successfully, but these errors were encountered: