microsoft / vscode

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

Auto Import Issue #209742

Closed The-ARJ closed 7 months ago

The-ARJ commented 7 months ago

Type: Bug

doesn't auto suggest and auto imports from modules like next js or next-ui in jsx/js

VS Code version: Code 1.88.0 (5c3e652f63e798a5ac2f31ffd0d863669328dc4c, 2024-04-03T13:26:18.741Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 5900HX with Radeon Graphics (16 x 3294)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.42GB (0.93GB free)| |Process Argv|--crash-reporter-id b92edbcf-fe77-445e-a43d-a84a354daa98| |Screen Reader|no| |VM|0%|
Extensions (40) Extension|Author (truncated)|Version ---|---|--- codesnap|adp|1.3.4 flutter-snippets|ale|3.0.0 vscode-tailwindcss|bra|0.10.5 node-snippets|chr|1.3.3 npm-intellisense|chr|1.4.5 vscode-eslint|dba|2.4.4 githistory|don|0.6.20 gitlens|eam|14.9.0 vscode-html-css|ecm|2.0.9 vsc-material-theme|Equ|34.3.1 vsc-material-theme-icons|equ|3.5.0 vscode-postman|eri|2.1.0 prettier-vscode|esb|10.4.0 git-project-manager|fel|1.8.2 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 vscode-github-actions|git|0.26.2 vscode-pull-request-github|Git|0.86.0 pubspec-assist|jer|2.3.2 mongodb-vscode|mon|1.5.0 vscode-docker|ms-|1.29.0 isort|ms-|2023.10.1 python|ms-|2024.4.0 vscode-for-node-js-development-pack|nod|2.0.1 vscode-extension-auto-import|Nuc|1.4.3 material-icon-theme|PKi|4.34.0 html-to-jsx|ria|0.0.1 LiveServer|rit|5.7.9 code-snapshot|rob|0.2.1 html-to-jsx|sub|0.0.1 icons|tal|3.8.0 vsfire|tob|1.4.1 intellicode-api-usage-examples|Vis|0.2.8 vscode-icons|vsc|12.7.0 vscode-wakatime|Wak|24.4.0 JavaScriptSnippets|xab|1.8.0 vscode-preview-server|yui|1.3.0 json|Zai|2.0.2 material-theme|zhu|3.17.0 html-css-class-completion|Zig|1.20.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 jchc7451:30973076 gee8j676:31009558 dsvsc021:30996838 gd77d436:30999572 ```
jzwang-dev commented 7 months ago

Possible Duplicate: https://github.com/microsoft/TypeScript/issues/58113

Temp Solution: https://github.com/microsoft/TypeScript/issues/58113

grentank commented 7 months ago

I have the latest version of VSCode and I have the same issue. Auto-imports do not work with neither MUI, nor React-bootstrap. Also I experience issues importing from react-router-dom (however after I manually import at least something from the library, auto-imports and import suggestions begin to work for the react-router-dom) I have disabled all my extensions except for WSL, Eslint, Prettier and AWS Toolkit

slavoroi commented 7 months ago

Same here... Auto imports in a monorepo stopped working correctly. I had to use the previous VSCODE version.

ScooterOk commented 7 months ago

The same. MacOs. M1Pro. v.1.88 Project Next.js + MUI. Doesn't work auto import MUI components. Performance has become too bad.

vscodenpa commented 7 months ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!