Currently, I am working on a Svelte project that utilizes Vite as the primary build tool. I encountered an issue while trying to import a TypeScript interface (toDo) into a Svelte component. The problem arose during compilation of the component.
Below is a snippet of my Svelte component:
<script type="ts">
import { toDo } from "./todos.store";
</script>
In this code snippet, toDo represents the type assigned to a toDoItem.
Does anyone have any insights on what could be causing this error and how I might resolve it?