Skip to content

React 19 incompatibility with some components #5842

Open
@fasonju

Description

@fasonju

Description

Non descriptive error causes ui not to render using some components. Downgrading to react 18 solved this issue. I'm not sure which components are affected but at least ActionList.Item and CheckBoxGroup.Label are affected. This error is consistent across chrome, safari and Firefox.

Screenshot of npm error messages

Steps to reproduce

  1. initialize project, I used vite. npm create vite@latest
  2. install primer npm install @primer/react
  3. replace app.tsx with the following
import './App.css'
import { ActionList } from '@primer/react'

function App() {
    return (
        <ActionList>
            <ActionList.Item><span>Item 1</span></ActionList.Item>
        </ActionList>
    )
}

export default App

  1. try to run npm run dev

Version

v37.17.0

Browser

Safari

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingreact

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions