Issue with typescript #2540
Replies: 2 comments 2 replies
-
me too, Is there a way to solve it? |
Beta Was this translation helpful? Give feedback.
1 reply
-
The solution is to verify the Vue versions in your dependencies. For example, if pinia depends on Vue 3.2 but you have installed Vue 3.3, it will result in the installation of two versions of Vue. As a result, the Ref type will be duplicated, leading to the occurrence of this issue. I Think it's better to move "vue" from dependencies to peer in Pinia |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Steps to reproduce the bug
Hey, just noticed that storeToRefs returns incorrect types when using ref's inside the store. it wraps 2 Refs
Expected behavior
it should not wrap ref 2 times
Actual behavior
it wraps twice
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions