Skip to content

Cannot find namespace 'JSX' on latest prism-react-renderer and TypeScript #261

@Ciach0

Description

@Ciach0

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

Recently, TypeScript removed the JSX namespace from the codebase. Now, developers have to use React.JSX. This makes it hard to use the library without modifying the library typings or enabling `skipLibCheck` within tsconfig.json.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions