Skip to content

React 19 support #1431

Closed
Closed
@Malien

Description

@Malien

Now that react 19 is out this is a burning issue!

React 19 removed global JSX namespace from it's typings. As a result any styled component is typed as any. #1420 addresses this issue.

As a side note, the repo feels dead rn. Nothing was done in 9 months. Has linaria ran out of steam? Should we move on to a better supported solution?

As a workaround:

declare global {
  namespace JSX {
    interface IntrinsicElements extends React.JSX.IntrinsicElements {}
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug report 🦗Issue is probably a bug, but it needs to be checkedneeds: complete repro 🖥️Issue need to have complete repro provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions