-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[ButtonBase] Regression in 3.1.2 causes error "Cannot read property 'focusVisible' of null" #13283
Comments
You only changed |
|
I've created a Github repo that shows my stack. The button call is being used in https://github.com/alexplumb/test-app-material-ui is the repo |
Could this be facebook/react#12523? Specifically maybe some lockfile/node_modules constellation caused an older version of As it stands right now I will close this since it's not actionable for us in this state without a repro. |
See #13322 (comment) for what solved it for me. |
I was able to resolve it by deleting my node_modules folder, package-lock.json, and re-running npm install in my project. The fix ended up being pretty simple but the bug seems to be pretty pervasive - I think it would be wise to add a check to these |
Isn't that what I said?
@alexplumb |
Huh - totally missed that - my bad. If I read more closely, I would have saved hours of debugging. Oh well, good experience learning react internals. |
For whatever reason, upgrading from 3.1.1 to 3.1.2 causes my app to stop functioning. The full error message that I'm receiving:
TypeError: Cannot read property 'focusVisible' of null
at getDerivedStateFromProps (ButtonBase.js:353)
at wi (vendor.js:55)
at Ni (vendor.js:55)
at Qi (vendor.js:55)
at Zi (vendor.js:55)
at Co (vendor.js:55)
at Lo (vendor.js:55)
at la (vendor.js:55)
at ua (vendor.js:55)
at ko (vendor.js:55)
Updating
getDerivedStateFromProps
like so fixes the issue: alexplumb@40c82b8Expected Behavior
Including
Button
,IconButton
, orButtonBase
in my application should display the specified button.Current Behavior
A white screen appears and the error in the title appears in the console log
Steps to Reproduce
Unable to reproduce in a code sandbox or create-react-app. Seems to only happen in my own environment.
Context
Your Environment
The text was updated successfully, but these errors were encountered: