WebComponent without shadow-root #12458
Unanswered
0ptional
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone!
I have built a web component (vue 3.5.x + vite) which currently uses a shadow-root. It all works, but I need the component to not be in a shadow dom. So I set
shadowRoot: false
in thedefineCustomElement
. But when using the web component, I get:It tries to inject the styles into the shadow root, which does not exist. How can I prevent this? And how are the css styles included without a shadow dom? Should vite generate a css file?
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions