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 issue - Cannot read properties of undefined (reading 'ReactCurrentDispatcher') #175

Open
charliemidtlyng opened this issue Dec 17, 2024 · 2 comments
Assignees

Comments

@charliemidtlyng
Copy link

After upgrading my application to React 19 and react-router-dom to 7 we get this error:

Cannot read properties of undefined (reading 'ReactCurrentDispatcher')

Call stack: 
 eval
  node_modules/react-router-prompt/dist/react-router-prompt.js:199:15
 gr
  node_modules/react-router-prompt/dist/react-router-prompt.js:637:4
 eval
  node_modules/react-router-prompt/dist/react-router-prompt.js:639:26
 ./node_modules/react-router-prompt/dist/react-router-prompt.js
  vendors.533fc20527565668fecb.js:22529:1
Copy link

Hey, @charliemidtlyng. Thank you so much for taking the time to point this out

@sshyam-gupta
Copy link
Owner

Update here: made a fix for React 19.
Yet to cover react-router-dom - v7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants