Closed pkalita-lbl closed 11 months ago
As far as I can tell this is something that Stencil requires client applications to handle themselves, as alluded to by this documentation section: https://stenciljs.com/docs/custom-elements#example-bundler-configs. It's also something that confuses a lot of people about Stencil. So the best thing to do is probably just document what a very basic setup looks like.
When I attempt to define the custom components via importing the NPM package (as opposed to using a
<script>
tag with a prebuilt script) the images used in the legend cause errors.I have a very simple application with this source file:
I bundle with esbuild:
And I include the output in this page:
At runtime the following error is thrown:
This error goes away if I change
show-legend=true
toshow-legend=false
.I think this points to something incorrect about the way the legend images are bundled or referenced.