You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Testing a svelte component that include RangeSlider does not works. I have an error : TypeError: SvelteRangeSliderPips is not a constructor.
I'm testing a "classic" implementation with :
<script>
import RangeSlider from "svelte-range-slider-pips";
</script><RangeSlidervalues={[50]}pips/>
If I try to fork project and implement some tests with jest and testing library, I don't manage to make it works. Getting error : Unrecognized option 'sourcemap'.
I don't quite follow what you mean by "classic". Are you meaning that you simply trying to import into a Svelte project? And if so, Svelte 2 or Svelte 3, or SvelteKit ?
Secondly, I'm not sure what your issue is with sourcemap, but I think it's unrelated to this component and is an issue with the way you're loading Svelte. as sourcemap is a Svelte option, not a RangeSlider option. (https://svelte.dev/docs#compile-time-svelte-compile)
simeydotme
changed the title
[bug] TypeError: SvelteRangeSliderPips is not a constructor
[question] TypeError: SvelteRangeSliderPips is not a constructor
May 25, 2022
Describe the bug
Testing a svelte component that include
RangeSlider
does not works. I have an error :TypeError: SvelteRangeSliderPips is not a constructor
.I'm testing a "classic" implementation with :
If I try to fork project and implement some tests with jest and testing library, I don't manage to make it works. Getting error :
Unrecognized option 'sourcemap'
.To Reproduce
Just try to test
RangeSlider
component in a svelte app.For the second problem, you can fork : https://github.com/lpoupet/svelte-range-slider-pips
Steps to reproduce the behavior:
Run
npm run test
Expected behavior
No error
The text was updated successfully, but these errors were encountered: