-
Notifications
You must be signed in to change notification settings - Fork 559
Fix: Auth0-Lock Error with React 19 and Nextjs 15 #2701
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
Conversation
|
Claude finished @ankita10119's task —— View job Overall Assessment❌ This pull request implements the React 19 migration correctly in principle but has several code quality issues that should be addressed before merging. The core migration strategy (string refs → createRef, removing findDOMNode, upgrading react-transition-group) is sound, but the implementation has inconsistencies and pre-existing code quality issues. Key Issues IdentifiedCritical Issues:
Code Quality Issues (Pre-existing, not introduced by this PR):
Positive Aspects:
Recommendations
Security & PerformanceNo security vulnerabilities or performance regressions identified. The migration maintains the same behavior while updating to modern React patterns. |
- Upgrade react-test-renderer to 19.2.1 - Add .npmrc with legacy-peer-deps for enzyme compatibility - Enzyme test adapter doesn't support React 19 yet - CI will automatically use .npmrc without workflow changes
5d334ff to
411f492
Compare
**Fixed** - Fix: Auth0-Lock Error with React 19 and Nextjs 15 [\#2701](#2701) ([ankita10119](https://github.com/ankita10119))
Changes
Fixes React 19 and NextJS 15 compatibility issues in auth0-lock by removing deprecated APIs that were removed in React 19:
ref="name")ReactDOM.findDOMNode()react-transition-groupv2 (which used deprecated APIs)Root Cause: auth0-lock was using legacy string refs (e.g.,
ref="chrome") which were removed in React 19Changes Made
1. String Refs → React.createRef() (13 files)
Converted all legacy string refs to the modern
createRef()pattern:Before (React 18 and earlier):
After (React 19 compatible):
ReactDOM.findDOMNode()Replaced all
ReactDOM.findDOMNode()calls with direct ref access:Before:
After:
Added nodeRef props to CSSTransition components to avoid react-transition-group's findDOMNode fallback:
Before:
After:
Testing
Test Environment:
Test Scenarios:
Checklist