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
Cannot read property 'root' of undefined for all components #16202
Comments
@RZsam Your issue has been closed because it does not conform to our issue requirements. |
I'm also getting this issue after updateing MUI. Both TextField and Input are affected. I'm not even using withStyles in my webapp.
|
From the compiled non-source-mapped js code
seems as if the className prop can't be a string anymore? Must be an object. To be added, I'm using vanilla react <form> element around TextField/Input, maybe a big factor of this issue. |
@hlolli The className still accept a string. Something must be wrong somewhere else. I would suspect an issue with the bundling stack of your project. We can't help without a reproduction. |
https://codesandbox.io/s/4j7m47vlm4?fontsize=14 Give it a quick try and I can't reproduce on this web editor. I'll look further into what's going on with the closure-compiler. |
Nevermind that url, I pressed share and copied the url, but it's just like how I started it with. :) |
#15898 (comment) solved the problem |
Removing node_modules and installing them again worked. |
Same question, the |
@RZsam thank you, adding |
I had fixed this bug yesterday. The dep tree is:
The real used dep in bundle is And i found an important point: So i add hoist-non-react-statics@3.3.1 and changed webpack's resolve alias to force use hoist-non-react-statics@3.3.1. package.json
webpack.config.js
|
same problem as #15898 #16168 getting this error after migrating to v4 and didn't find any solution in mentioned issues
this error shows up for every component I've imported.
package.json:
I've removed /node_modules and yarn.lock and tried yarn
The text was updated successfully, but these errors were encountered: