0

(Currently using VS Code on macOS Monterey, mostly for React and JavaScript.)

When I used to import a component at the top of my file, Vs Code would suggest the path of the file. I would simply press enter or click on the suggestion and VS Code would fill in the rest. Seems to me like a standard feature of VS Code, and I've grown pretty accustomed to it.

Now, it doesn't suggest anything. I'll type out a file that exists in the project, and nothing appears. I've tried it with several projects, and none of them suggest anything anymore — when just last week it was working fine.

trying to import

One thing... I have a lingering suspicion that it's from doing this:

npm i @types/react -g

A friend recommended I add it. With it, you can declare a component in your project and VS Code will auto import it. Really, it's the only thing I can remember changing since this strange behavior with VS Code started, but I'm not positive. Just a suspicion. I've tried to remove it, but it didn't fix anything.

I've done a bunch of stuff found on stackoverflow already with no improvements:

0 Answers0