How to solve JSX element implicitly has type any error? JSX Element implicitly has any type 'any' because no interface 'JSX IntrinsicElements' exists To solve it, what I did was uninstall the packages: @types react and @types react-dom, using:
How to configure Vite to allow JSX syntax in JS files? The vite config js below makes Vite Vitest treat * js files as JSX to avoid errors like: Error: Failed to parse source for import analysis because the content contains invalid JS syntax
Cannot use JSX unless the --jsx flag is provided Apparently in incremental mode tsc may ignore the --jsx setting, and use information from previous builds instead (where --jsx was still disabled) As a solution I turned of incremental compilation temporarily, recompiled, and re-enabled it Probably deleting the build artifacts might also work