new to Svelte so excuse the little knowledge. I am attempting to save a localStorage item on:click and toggle it when clicked again. Currently, the item is added to localStorage but on a second click, it is not removed. If you refresh the page and click the item is removed but I would like this not to be necessary. Onclick
Tag: svelte-component
Import alias svelte component in typescript svelte
I want to import a svelte component in a typescript svelte component, it works for typescript file and other type of files, but in this case of svelte component, it resulted in a path error, here’s my code : It only works if i use ../../components/LoadingIcon.svelte instead of src/components/LoadingIcon.svelte Here’s the error: Uncaught (in promise) TypeError: Failed to resolve module