I am having trouble dispatching a customEvent to an astro web component that is listening. How am I supposed to dispatch a customEvent from one astro file to another another component that is listening?
I have an astro page "pages/examples/index.astro" with a button on the page, along with an imported astro web component "components/example-web-component.astro". I am trying to send a customEvent "example-event" from the index page to the example component. The component is listening for the event, confirmed by the browers inspector under elements > event listeners. However I'm unable to dispatch the event from the button. I have tried dispatching the event from the component element, the button element itself, and the window, along with trying different events that include bubble, all with no success.