Skip to content

Compile error after JSX namespace was removed in React 19 #140

Description

@chrboe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions