microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.97k stars 29.19k forks source link

Angular application compiles but a lot of ts2307 errors #183934

Closed darves closed 1 year ago

darves commented 1 year ago

Type: Bug

As title say,

Application compiles but a lot of ts2307 errors for every import that does not have relative path; So every time when something is imported by /src/app/ editor show ts2307 error; I tried to restart multiple time, to remove node_modules, run the npm install and many more things -> nothing helped; Project was working correctly until today; I can't remember I install something new

VS Code version: Code 1.78.2 (b3e4e68a0bc097f0ae7907b217c1119af9e03435, 2023-05-10T14:39:26.248Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 5900X 12-Core Processor (24 x 3693)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.94GB (10.46GB free)| |Process Argv|--crash-reporter-id b4f1a248-40e8-4257-921c-b67408ec97c8| |Screen Reader|no| |VM|0%|
Extensions (17) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|16.0.0 glsl-canvas|cir|0.2.15 gitlens|eam|13.6.0 vscode-postman|eri|2.1.0 vscode-glsl|GeF|0.2.9 copilot|Git|1.87.127 vscode-scss|mrm|0.10.0 vscode-docker|ms-|1.25.1 remote-containers|ms-|0.292.0 remote-wsl|ms-|0.78.8 vscode-typescript-next|ms-|5.2.20230530 vsliveshare|ms-|1.0.5864 vsliveshare-pack|ms-|0.4.0 debugger-for-edge|msj|1.0.15 angular-console|nrw|18.1.2 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931:30280409 vshan820:30294714 vstes263:30335439 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593cf:30376535 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 2e4cg342:30602488 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 2i9eh265:30646982 showlangstatbar:30737416 vsctsb:30748421 pythonms35:30701012 ecj1e332:30736112 pythonfmttext:30731395 pythoncmv:30739700 fixhidewlkth:30730051 showsbindicator:30730056 pythongtdpathcf:30739705 ```
mjbvz commented 1 year ago

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

darves commented 1 year ago

It happened after I install the latest VS Code insiders, but happened to vscode and vscode insiders.

Also, problem disappeared when I removed this from tsconfig.json: ""paths": { "subproj": [ "dist/subproj" ],}

Could that be a issue or just bug in vscode?

mjbvz commented 1 year ago

Thanks for checking. It sounds like your project is misconfigured in some way. Try asking on stack overflow for further help with this