question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatibility with vue 2.7

See original GitHub issue

After upgrading to vue:2.7, which has composition-api built in, I started getting this compilation error when running my app:

 ERROR  Failed to compile with 1 error                                                                                                                                 12:19:59 PM

 error  in ./node_modules/vue-concurrency/dist/vue2/vue-concurrency.module.js

Module not found: Error: Can't resolve '@vue/composition-api' in '/home/micael/code/webapp/node_modules/vue-concurrency/dist/vue2'

ERROR in ./node_modules/vue-concurrency/dist/vue2/vue-concurrency.module.js 1:0-140
Module not found: Error: Can't resolve '@vue/composition-api' in '/home/micael/code/webapp/node_modules/vue-concurrency/dist/vue2'
 @ ./node_modules/vue-concurrency/dist/index.module.js 1:0-45 1:0-45
 @ ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/form/CFileUpload.vue?vue&type=script&lang=ts& 5:0-42 9:26-33
 @ ./src/components/form/CFileUpload.vue?vue&type=script&lang=ts& 1:0-252 1:268-271 1:273-522 1:273-522
 @ ./src/components/form/CFileUpload.vue 2:0-63 3:0-58 3:0-58 9:2-8
 @ ./src/components/ sync [A-Z]\w+\.(vue%7Cjs)$ ./form/CFileUpload.vue
 @ ./src/main.ts 99:21-81

Is there anything I’m missing to make this work? Or is vue-concurrency incompatible with vue:2.7?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
MartinMalindacommented, Oct 24, 2022

A too quick answer from me, sorry. I mean the error is unfortunately still present. It’s still going in infinite loop.

1reaction
mdcarreiracommented, Aug 19, 2022

Hey @MartinMalinda, thanks for the fast reply!

Yeah, I understand. If I knew more about vue, I might try to give you a helping hand and make a PR. But unfortunately I’m a vue noob…

I’ll keep watching your repo and crossing my fingers that you will find the time to look into it 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

fix: type incompatibility with Vue 2.7 (fix #1993) by deraw · Pull ...
It's submitted to the dev branch. · When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx[,#xxx] , where...
Read more >
Migration to Vue 2.7
In Vue 2.7, we have backported some of the most important features from Vue 3 ... 2's getter/setter-based reactivity system to ensure browser...
Read more >
Vue2 compatibility | Vue Forums - Syncfusion
This is caused because vue have release a new version for vue 2 i.e.(v2.7.x) in the 1 st July 2022. In the newer...
Read more >
How do I fix a "Vue packages version mismatch" error on ...
This worked for me: Modify package.json : “vue”: “^2.0.8", “vue-template-compiler”: “^2.1.8". Delete node_modules. Run npm install.
Read more >
@vue/compat - npm
Vue 3 compatibility build for Vue 2. ... backport Composition API and some other Vue 3 features to the 2.7 release (estimated late...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found