You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defining components as default props in a material ui theme throws the following error:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
at createFiberFromTypeAndProps (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:253875:21)
at createFiberFromElement (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:253898:15)
at createChild (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:243538:28)
at reconcileChildrenArray (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:243810:25)
at reconcileChildFibers (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:244215:14)
at reconcileChildren (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:246672:28)
at updateHostComponent (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:247212:3)
at beginWork (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:248537:14)
at HTMLUnknownElement.callCallback (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:230098:14)
at Object.invokeGuardedCallbackDev (http://localhost:9009/vendors~main.e20e507f310929fd7c90.bundle.js:230147:16)
Defining components as default props in a material ui theme throws the following error:
This error can be reproduced in the demo app (https://github.com/react-theming/theming-material-ui) by extending the example theme like this:
This error happens both with material ui v4 and v5.
The text was updated successfully, but these errors were encountered: