I am trying to use the abovementioned package for svelte, but as soon as I invoke the component I get error 500 saying that
'springPositions' is not a store with a 'subscribe' method
I am new to svelte, do I need to perform some certain steps to make it work, or is it a bug in a component?
this is my code:
<script>
import RangeSlider from "svelte-range-slider-pips";
export let title;
export let description;
export let quantity = 1;
export let price;
</script>
<style>
.ticket-card {
width: 270px;
height: 100%;
background-color: var(--dark-color);
display: flex;
flex-direction: column;
align-items: center;
margin: 0 30px;
padding: 20px;
border-radius: 10px;
}
h3 {
color: var(--snow-color)
}
.description p {
color: var(--snow-color);
text-align: center;
}
</style>
<article class="ticket-card">
<h3>{title}</h3>
<div class="description">
<p>{description}</p>
</div>
<div class="quantity-selection">
<RangeSlider min={1} max={50} values={[1]} springValues={{ stiffness: 0.15, damping: 0.4 }}/>
<span>{quantity}</span>
</div>
</article>
thanks a lot