#109639
Joko Pitoyo
Participant

hi,

i already follow guide before, and i have no problem for simple demo like you have metion, but for another component like smart-splitter we got same error, for example:

+page.svelte

<script>
    import 'smart-webcomponents/source/modules/smart.splitter.js';
</script>
<smart-splitter id="splitter" live-resize>
    <smart-splitter-item id="item0">
        <p>The tiger (Panthera tigris) is the largest cat species, most recognizable for its pattern of dark vertical stripes on reddish-orange fur with a lighter underside.</p>
    </smart-splitter-item>
    <smart-splitter-item id="item1">
        <h2>BENGAL TIGER</h2>
        <img alt="Test" src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/17/Tiger_in_Ranthambhore.jpg/220px-Tiger_in_Ranthambhore.jpg" />
        <p>The Bengal tiger's coat is yellow to light orange, with stripes ranging from dark brown to black; the belly and the interior parts of the limbs are white, and the tail is orange with black rings.</p>
        <p>Males have an average total length of 270 to 310 cm (110 to 120 in) including the tail, while females measure 240 to 265 cm (94 to 104 in) on average. The tail is typically 85 to 110 cm</p>
    </smart-splitter-item>
</smart-splitter>

above sample will not appear in web browser, and got same error in console log:

smart-splitter: "insertBefore" method accepts an object or an array of objects as it's second parameter.

[HMR][Svelte] Unrecoverable HMR error in <Root>: next update will trigger a full reload
Uncaught (in promise) smart-splitter: "insertBefore" method accepts an object or an array of objects as it's second parameter.
  • This reply was modified 7 months, 3 weeks ago by Joko Pitoyo.
  • This reply was modified 7 months, 3 weeks ago by Joko Pitoyo.