Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode How to disable/remove "react/cjs/react.development" autocompletion

As the title says, there is a react/cjs/react.development library that is sometimes added when auto completing normal React elements like useState.

I used to ignore it and select React, but it suddenly caused a very hard to track error in production.
I want to delete/disable/remove it or atleast the autocompletion, how is this possible in VSCode?

like image 248
SalsaJJ Avatar asked Apr 23 '26 06:04

SalsaJJ


1 Answers

I found a solution where I installed DefinitelyTyped react through @types/react package

npm i @types/react

update: I figured another solution without installing any packages through installing JavaScript and TypeScript Nightly vscode extension.

like image 55
Mahmoud Abdulmuty Avatar answered Apr 24 '26 18:04

Mahmoud Abdulmuty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!