r/learnreactjs • • Jan 12 '23

Question Auto complete imports

Having an issue on my MacBook getting imports to auto fill like import use State. It works on my windows desktop just fine, and I’m using the same starting boilerplates file and Vs code extensions on both. Anyone have any ideas?

3 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/ikeif Jan 12 '23

Is it JavaScript or TypeScript?

If TS, do you have @types/react installed?

On the windows machine does it have @types/react installed globally?

npm list -g

or

yarn global list