Skip to content

React 19 elements not recognized as React Element #12684

Closed
@jeroenpg

Description

@jeroenpg

Astro Info

Astro                    v4.16.16
Node                     v22.11.0
System                   Linux (x64)
Package Manager          yarn
Output                   static
Adapter                  none
Integrations             @astrojs/solid-js
                         @astrojs/react

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

React 19 elements are not recognized since facebook/react#2881 renamed react.element to react.transitional.element. This only occurs when multiple compatible frameworks are found for a single file, for instance when using Solid.js + React simultaneously.

What's the expected result?

To render react elements using React 19

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-ymshvplf?file=src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

Labels

- P2: nice to haveNot breaking anything but nice to have (priority)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions