tl;dr : specifically update @types/react dependency.
npm uninstall @types/react
and npm install @types/react
(my fix)
npm i @types/react@latest
(should work as well as someone above noted)
context :
installed a library and TS immediately started flagging the TS2339 error for all html elements, across all files. fwiw, code still ran as expected. npx tsc
was catching the errors too.
tried switching the vscode workspace/typescript version, uninstall/reinstalling the new package, deleting node_modules and package-lock then fresh npm install but no go on those attempts.
specifically importing React into any files wasn't necessary for my fix. Hope this helps someone!