-
Notifications
You must be signed in to change notification settings - Fork 18
fix(docs): fix custom element registry conflicts by renaming list-components with unique names #5356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ponents with unique names
🦋 Changeset detectedLatest commit: 556279c The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Related Previews |
@@ -22,8 +22,8 @@ interface IndexInput { | |||
}; | |||
} | |||
|
|||
@customElement('list-component') | |||
export class ListComponent extends LitElement { | |||
@customElement('designer-list-component') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's still calling list-component
in the developer.docs.mdx and designer.docs.mdx files, shouldn't it be updated there as well?
📄 Description
Fixed rendering issue in the Getting Started category by solving component name conflicts between Designer and Developer pages.
The issue was caused by identical custom element names ("list-component") being registered twice in the Storybook environment, resulting in the error: "Failed to execute 'define' on 'CustomElementRegistry': the name 'list-component' has already been used with this registry".
The solution:
🚀 Demo
If applicable, please add a screenshot or video to illustrate the changes.
📝 Checklist