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
It is a weird error. It seems like MUI sends in something else than a string to document.createElement() (e.g. document.createElement(undefined)).
It is most likely a bug in MUI, but apparently it is supported to send in other types in the browser as it is parsed to a string. I have added support for converting the value to a string now.
After adding mui to preact project, my test started crashing here:
https://github.com/capricorn86/happy-dom/blob/master/packages/happy-dom/src/nodes/document/Document.ts#L615
The error:
tried logging args and got this:
I managed to fix it by doing
(qualifiedName || '').toUpperCase()
, but there might be a better fixThe text was updated successfully, but these errors were encountered: