Skip to content

I need help with a problem #864

Discussion options

You must be logged in to vote

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):

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yanzhangshuai
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants