vmware-archive / clarity

Clarity is a scalable, accessible, customizable, open source design system built with web components. Works with any JavaScript framework, built for enterprises, and designed to be inclusive.
http://clarity.design
MIT License
6.43k stars 763 forks source link

[@core/react] NotSupportedError Failed to construct 'CustomElement': The result must not have attributes #6589

Closed astorije-vmware closed 2 years ago

astorije-vmware commented 2 years ago

Describe the bug

I was investigating why breadcrumbs were not working properly in our of our apps where we upgraded Clarity Core from v5.5.4 to v5.6.2. Upon creating a reproducible sandbox, this appeared:

Screen Shot 2022-01-24 at 2 20 40 PM

I don't know if the broken breadcrumbs are a consequence of this (you can see the breadcrumbs underneath looking like "FooBarBaz" instead of "Foo / Bar / Baz") but I did experience this same Failed to construct 'CustomElement' error when I started using CdsCard so it doesn't seem to be an isolated event.

How to reproduce

The error should appear upon loading of: https://codesandbox.io/s/fragrant-pond-zf71n?file=/src/App.tsx

Versions

Clarity project:

Clarity version:

Framework:

astorije-vmware commented 2 years ago

I just noticed this on v5.6.1 as well, so we will downgrade to v5.6.0 for now :(

coryrylan commented 2 years ago

I see the issue, we should have this corrected in the next release.

astorije-vmware commented 2 years ago

Thanks @coryrylan! I know that's a long shot, but do you have any time estimate? That would help us plan our next steps, but no worries if not :)

mathisscott commented 2 years ago

We just finished a release so our next one is likely to be week after next (two week cadence). Some stuff is going on. So maybe it happens sooner or later. But only by a week either way regardless.

astorije-vmware commented 2 years ago

Are you talking about v6.0.0-next.3? Any chance this fix could make it into a v5.6.3 release so we're not stuck on v5.6.0 until v6 is a stable release?

Thank you!

mathisscott commented 2 years ago

If this change is not a breaking change, you can expect it to land in 5.6.3. That said, 5.6.3 isn't going to be out for at least two weeks from now due to our two week release cycle...

github-actions[bot] commented 2 years ago

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed issues after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.