You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of upgrading a vue2 project to all the latest stuff, and have identified the replacement of vuex with pinia as an atomic step I could do in preparation, whilst maintaining all the other parts of the system.
As per the title, I have installed:
vue: 2.7.16
pinia: 2.0.35
vue-demi (brought in by pinia): 0.14.10 (and I've installed it at the root level too because @vuelidate libraries on latest are bringing in 0.13.11)
running tsc --noEmit via nodemon as I work through the store, I see the error:
node_modules/@vuelidate/core/index.d.ts:1:43 - error TS2724: '"vue-demi"' has no exported member named 'ComponentInternalInstance'. Did you mean 'ComponentInstance'?
1 import { Ref, UnwrapRef, defineComponent, ComponentInternalInstance } from 'vue-demi';
~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/pinia/dist/pinia.d.ts:7:10 - error TS2724: '"vue-demi"' has no exported member named 'ToRef'. Did you mean 'toRef'?
7 import { ToRef } from 'vue-demi';
Is there a "magic" / "correct" combination of packages that will result in an acceptable vue-demi import? Is there some other way to work around this? Any assistance appreciated: my google-fu has let me down.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of upgrading a vue2 project to all the latest stuff, and have identified the replacement of vuex with pinia as an atomic step I could do in preparation, whilst maintaining all the other parts of the system.
As per the title, I have installed:
running
tsc --noEmitvia nodemon as I work through the store, I see the error:Is there a "magic" / "correct" combination of packages that will result in an acceptable vue-demi import? Is there some other way to work around this? Any assistance appreciated: my google-fu has let me down.
Beta Was this translation helpful? Give feedback.
All reactions