mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
92ebd74011
`@a2ui/lit` registers the "a2ui-root" custom element via Lit's @customElement decorator as a side effect when its UI module loads. React Strict Mode double-mounts components, and since customElements.define() is irreversible, the second mount throws: "the name a2ui-root has already been used with this registry" Several a2ui-renderer files used value imports from "@a2ui/lit" when only types were needed, pulling in the full module tree including the custom element registration. Changed to `import type` where possible and switched to the narrower `@a2ui/lit/0.8` subpath (core.js only, no UI/custom element registration) where value access is needed. https://claude.ai/code/session_01CUPfWAF8EmLieEasaepAgp