square / svelte-store

529 stars 35 forks source link

js-cookie import #41

Closed miedzikd closed 1 year ago

miedzikd commented 2 years ago

After migration to v1.0.11 I have one more issue when running webpack build

 ERROR  Failed to compile with 3 errors                                                         

error  in ./node_modules/@square/svelte-store/lib/persisted/storage-utils.js
export 'get' (imported as 'Cookies') was not found in 'js-cookie' (possible exports: default)

error  in ./node_modules/@square/svelte-store/lib/persisted/storage-utils.js
export 'set' (imported as 'Cookies') was not found in 'js-cookie' (possible exports: default)

error  in ./node_modules/@square/svelte-store/lib/persisted/storage-utils.js
export 'remove' (imported as 'Cookies') was not found in 'js-cookie' (possible exports: default)

webpack compiled with 3 errors and 3 warnings

It looks like js-cookie has old typescript mappings in "@types/js-cookie" module?

More info here: https://github.com/js-cookie/js-cookie/issues/717