title: Svelte Kit failed to resolve import "svelte-persistent-store/dist/local"
body: <p>I installed the <code>svelte-persistent-store</code> library, and got error while importing <code>writable</code> from <code>svelte-persistent-store/dist/local</code></p>
  <p><code>theme.svelte</code></p>
  <pre class="lang-html prettyprint-override"><code>&lt;script lang=&quot;ts&quot; context=&quot;module&quot;&gt;
    import { setContext } from 'svelte'
    import { writable as persist } from 'svelte-persistent-store/dist/local'
    import type { Writable } from 'svelte/store'
  
    export type Theme = 'light' | 'dark'
    export type ThemeContext = Writable&lt;Theme&gt;
  
    const theme = 'light'
  
    setContext('theme', persist('theme', theme))
  &lt;/script&gt;
  
  &lt;slot /&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/0jbx6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0jbx6.png" alt="enter image description here" /></a></p>