Typescript Error JSX element class does not support attributes because it does not have a 'props' property. ts(2607)
Getting typescript error from vscode: "JSX element class does not support attributes because it does not have a 'props' property. ts(2607)". See screen shot.

react: 17.0 typescript: 4.1.2
Try example from the stories folder WindowInfiniteScrollComponent.tsx. Got the same error in my workspace.
i had the same problem, i had to change to js file again until there's a solution
Is there any fix for this without switching to js file ?
Any resolution for this bug ?
Hi guys ! Any solution found on this issue ? Kind of annoying to not be able to use .tsx files
I solved it by running pnpm config set auto-install-peers true && pnpm install --fix-lockfile. Not sure if this might help anyone.