Vue 3 property value does not exists

Viewed 374

I just started a new project with new installation and all updated versions of vue and typescript. So I'm using library vueuse and as I follow documentation and write in any file either ts or vue, does not matter if it's in composition api or not, I always have same error. So it looks like that

I'm trying to get some value of storage like so:

const toke = useStorage('my-store', '');

and after I want to do some with it like:

console.log(toke.value)

and it's always returning

Property 'value' does not exist on type 'Pick<Ref, unique symbol>'.

Why is that? As I see, everything is good with library, but that is not working.

Also I tried with other functions, and useSessionStorage is not working as well, but useNow is good.

0 Answers
Related