Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 incompatibility with some components #5842

Open
fasonju opened this issue Mar 30, 2025 · 1 comment
Open

React 19 incompatibility with some components #5842

fasonju opened this issue Mar 30, 2025 · 1 comment
Assignees
Labels
bug Something isn't working react

Comments

@fasonju
Copy link

fasonju commented Mar 30, 2025

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.

Image

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

@fasonju fasonju added the bug Something isn't working label Mar 30, 2025
Copy link
Contributor

Uh oh! @fasonju, at least one image you shared is missing helpful alt text. Check your issue body to fix the following violations:

  • Images should have meaningful alternative text (alt text) at line 5

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

@sunnyi101 sunnyi101 self-assigned this Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working react
Projects
None yet
Development

No branches or pull requests

2 participants