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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With