I need help with a problem #864
-
I need help with a problem. That's not pinia bug. But I'm asking for your help But I have registered @vue/composition-api vue@2.6.14 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is a quirk of the composition API in Vue2. See the Troubleshooting section in the following release for fixes: https://github.com/vuejs/composition-api/releases/tag/v1.3.0 We had a similar problem when one lib used an older version of vue-demi, so when we upgraded to Pinia@2 there were constant conflicts in resolution. If you're in a similar situation and using Vite then the following lines in your config under alias: [
{ find: /^@vue\/composition-api$/, replacement: '@vue/composition-api/dist/vue-composition-api.mjs' },
{ find: '@vue/composition-api/dist/vue-composition-api.esm.js', replacement: '@vue/composition-api/dist/vue-composition-api.mjs' },
// your other aliases here
] |
Beta Was this translation helpful? Give feedback.
This is a quirk of the composition API in Vue2. See the Troubleshooting section in the following release for fixes: https://github.com/vuejs/composition-api/releases/tag/v1.3.0
We had a similar problem when one lib used an older version of vue-demi, so when we upgraded to Pinia@2 there were constant conflicts in resolution. If you're in a similar situation and using Vite then the following lines in your config under
resolve.alias
should fix it (as noted in the above link):