react-step-wizard
react-step-wizard copied to clipboard
Compile error after JSX namespace was removed in React 19
When compiling with React 19:
node_modules/react-step-wizard/dist/index.d.ts:13:8 - error TS2503: Cannot find namespace 'JSX'.
13 nav: JSX.Element
~~~
node_modules/react-step-wizard/dist/index.d.ts:28:13 - error TS2503: Cannot find namespace 'JSX'.
28 children: JSX.Element | JSX.Element[] | React.ReactElement
~~~
node_modules/react-step-wizard/dist/index.d.ts:28:27 - error TS2503: Cannot find namespace 'JSX'.
28 children: JSX.Element | JSX.Element[] | React.ReactElement
~~~
node_modules/react-step-wizard/dist/index.d.ts:45:61 - error TS2503: Cannot find namespace 'JSX'.
45 export declare function StepWizard(props: StepWizardProps): JSX.Element
~~~
Found 4 errors in the same file, starting at: node_modules/react-step-wizard/dist/index.d.ts:13
The library should use React.ReactElement instead.
A workaround for this issue is to set "skipLibCheck": true in tsconfig.json.