Within a Svelte project that was scaffolded using Vite, I am attempting to create a Svelte store in Typescript. However, I am encountering difficulties when trying to import the Writable<T>
interface as shown in the code snippet below:
import { Writable, writable, derived } from 'svelte/store';
Upon doing so, an error is displayed in the browser console stating:
Uncaught SyntaxError: The requested module '/node_modules/.vite/svelte_store.js?v=16f52463' does not provide an export named 'Writable'.
Is there a solution available for importing the Writable<T>
interface in this particular configuration?