0xFableOrg / 0xFable

A fully on-chain trading card game. There will be elves, wizards & shit. Drama and broken friendships also.
https://twitter.com/0xFableGame
BSD 3-Clause Clear License
103 stars 35 forks source link

Fix validateDOMNesting error #114

Open norswap opened 5 months ago

norswap commented 5 months ago

Copy of https://github.com/0xFableOrg/0xFable/pull/104#issuecomment-1920323529 for details:

This error is displayed: Warning: validateDOMNesting(...): %s cannot appear as a descendant of <%s>.%s both on Firefox and Chrome. I thought it might be caused by the remaining log statement, but that doesn't seem to be the case now that it's gone.

Sadly, this is mangled by my console.error replacements (that don't replace %s but it's basically a dom nesting error.

I disabled the filtering (by commenting the line in setup.ts) and it gives:

cannot appear as a descendant of

as well as

cannot appear as a descendant of

.

It seems to be coming from here: https://www.npmjs.com/package/@next/react-dev-overlay