Open jweston491 opened 2 years ago
Did you end up finding any workarounds to this? I am running into similar issues.
@shilman would you be able to provide any advice on this? I am experiencing the same problem. Is some setup using webpack needed?
<svelte:options customElement={{ tag: "primer-icon" }} />
This is my source - https://github.com/JacobWeinbren/Primer-Components
cc @JReinhold
Is your feature request related to a problem? Please describe Related to https://github.com/storybookjs/storybook/issues/14381
Setting
customElement: true
in "svelteOptions" (like below) breaks the built-in<HOC>
,<PreviewRender>
, and<SlotDecorator>
components since they are not configured to work with as Custom Elements. (See "Illegal Constructor" in screenshot)Example config (not working):
Describe the solution you'd like Setting
customElement: true
in main.js should result in Storybook being able to render custom web components.Describe alternatives you've considered I've tried the following custom webpack config, but it's not working (see error below). Perhaps someone can point me in the right direction
Which results in the following error:
Are you able to assist to bring the feature to reality? Probably not, which is why I opened this ticket, but willing to try to learn