andsala / svelte-persistent-store

Persist your svelte store in localStorage or sessionStorage
MIT License
86 stars 5 forks source link

Error in import path with webpack #6

Closed sdotb closed 4 years ago

sdotb commented 4 years ago

Trying to import with: import { writable } from 'svelte-persistent-store/local'; causes error: Module not found: Error: Can't resolve 'svelte-persistent-store/local'

Looking in node_modules the code is inside "svelte-persistent-store/dist" directory imported correctly with: import { writable } from 'svelte-persistent-store/dist/local';

andsala commented 4 years ago

Thanks for the heads up