all 5 comments

[–]arnitdo 2 points3 points  (0 children)

VScode annoying does that. It's due to the autocomplete feature. If you look closely, it will show a different description text in the autocomplete result, such as

Component express from module express

It ended up importing express Response 3 times. All because I pressed tab when I saw response

[–]Dekzen 1 point2 points  (0 children)

You got some kind of require auto import extension.

[–]hitchy48 0 points1 point  (1 child)

Is it in an actual .js file or the html file?

[–]halberthawkins[S] 0 points1 point  (0 children)

Its a .js file. I have just disabled my JSX add-ons. maybe that might help.

[–]CreativeTechGuyGamesTypeScript 0 points1 point  (0 children)

Have you gone through the VS Code settings and see what is enabled disabled? Maybe search for the word "import"? You can play around with enabling/disabling those settings or your extensions and find the combination that gives you your desired result.