I keep getting errors in my exported web-component that it couldn't find package components? I'm using @Andreas Møller markdown block within a web-component and it's just not working.
Max
6 months ago
Yes, you can use them in exported components. The error is not about the package. The custom action could not find the element with the ID "markdown..." Looks like Andreas needs to adjust the code a little 😁
The document object is not available in exported components
Due to the Shadow DOM, I think
Andreas Møller
6 months ago
Ah 👍
Chris Laupama
6 months ago
Do you think this will be fixed for hackathon entries @Andreas Møller? - otherwise I'll make some changes at my end for standard text.
Jacob Kofoed
6 months ago
FYI: In custom-actions, you can use the ctx.root instead of document to get the nearest document object. If the component is running in ShadowDOM, it will return the shadow root, otherwise it will return the document as normally.