-
Describe the bugDescription:
This makes the development experience very confusing for those expecting a stable environment.
"react": "^19.0.0",
"react-dom": "^19.0.0" TypeScript breaks JSX support out of the box due to changes in React 19 typings. // types/global.d.ts
import type React from "react";
declare global {
namespace JSX {
interface Element extends React.ReactElement {}
interface ElementClass extends React.Component {}
interface IntrinsicElements {
[elemName: string]: any;
}
}
} This workaround re-enables JSX support manually, but it's not ideal — especially for beginners or production setups. Reproductionhttps://github.com/Fsp30/Public-maxidata-challenge Steps to reproduceNo response System InfoSystem Info:
- Vite: 6.3.1
- Node: 22.12.0
- npm: 11.2.0
- pnpm: 10.8.1
- OS: Windows 11 Used Package Managerpnpm LogsNo response Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I couldn't reproduce the issue. (Btw, React 19 is stable, so Vite template should recommend it. If there's a 3rd package issue, then the issue should be raised on that side.) |
Beta Was this translation helpful? Give feedback.
I couldn't reproduce the issue.
(Btw, React 19 is stable, so Vite template should recommend it. If there's a 3rd package issue, then the issue should be raised on that side.)