You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, even though TypeScript / tsc will handle it fine, VSCode will mark leading slash imports with the error "cannot find module". In addition, typing a / slash will show Intellisense / autocomplete for the system root instead of the tsconfig mapped root.
VS Code version: Code 1.32.3 (a3db5be, 2019-03-14T22:46:48.547Z)
OS version: Darwin x64 17.7.0
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz (12 x 2600)
@mjbvz Good call! The tests folders were excluded from TS builds (in tsconfig.json), so apparently that excludes them from VSCode linting (?), which I didn't realize.
Issue Type: Bug
This commit added support for leading-slash module resolution.
microsoft/TypeScript#27980
However, even though TypeScript / tsc will handle it fine, VSCode will mark leading slash imports with the error "cannot find module". In addition, typing a
/
slash will show Intellisense / autocomplete for the system root instead of the tsconfig mapped root.VS Code version: Code 1.32.3 (a3db5be, 2019-03-14T22:46:48.547Z)
OS version: Darwin x64 17.7.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (16)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: