I know for a fact that using the constructor URL should be completely valid here. It runs without issue, and all the documentation/etc. I've read leads to me believe this should work. However, Svelte disagrees (image below shows svelte(missing-declaration) when constructor is used between {} within an attribute):
However, if I define it within the <script> tags up at the top (as below), and reference it via {animationspeed}, there are no lint errors.
I know for a fact that using the constructor
URL
should be completely valid here. It runs without issue, and all the documentation/etc. I've read leads to me believe this should work. However, Svelte disagrees (image below showssvelte(missing-declaration)
when constructor is used between{}
within an attribute):However, if I define it within the
<script>
tags up at the top (as below), and reference it via{animationspeed}
, there are no lint errors.