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

Encountering "Accessing element.ref was removed in React 19" error when rendering the Modal component #288

Closed
2 tasks done
germaine-tan opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@germaine-tan
Copy link

Prerequisites

Describe the issue

Our team is working on upgrading from React 18 to 19, and we encountered this error when rendering the Modal component
hook.js:608 Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.
We suspect it may be an issue caused by the react-bootstrap library, which was fixed in their v2.10.6 release. Checked that SGDS is currently using an older version of react-bootstrap

What operating system(s) are you seeing the problem on?

macOS

What browser(s) are you seeing the problem on?

Chrome

Describe your frontend stack. What version of React and @govtechsg/sgds-react are you using? CSR or SSR?

NextJS 15.1.3, React 19, sgds-react 2.7.4

@germaine-tan germaine-tan added the bug Something isn't working label Jan 10, 2025
@clukhei clukhei self-assigned this Jan 16, 2025
@clukhei
Copy link
Collaborator

clukhei commented Jan 16, 2025

@germaine-tan Fixed is released. Please upgrade your package to v2.7.5

@clukhei clukhei closed this as completed Jan 16, 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
Projects
None yet
Development

No branches or pull requests

2 participants