Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode no intellisense for node_modules

If i run

npx create-react-app myapp --template typescript

afterwards

npm i rxjs

Then start editing file src/App.tsx.

I can not for the life of me get the intellisense to work, unless i first import {} from 'rxjs. The same goes for @material-ui/core. I just freshly installed all of it. Vscode, npm, my whole computer basically. I tried all sorts of NPM and NPM intellisense extentions but none work.

How do i enable the intellisense for node_modules without having to import the package first?

like image 475
Rae Avatar asked Jun 11 '26 11:06

Rae


1 Answers

This comment has the gist of it.. https://stackoverflow.com/a/52471533/1300796

Once you use a module in A file, it will be available in all files. If you import { of } from 'rxjs' in file A, it will autoSuggest all rxjs module things in any other file.

like image 112
Rae Avatar answered Jun 14 '26 08:06

Rae