I am currently working on integrating vuejs 3 into a project that already utilizes webpack. I have been looking into using vue-loader as part of this process.
After consulting the official documentation, I came across the following information:
Every new release of Vue comes with an accompanying version of vue-template-compiler. It is crucial to ensure that the compiler's version matches the base Vue package in order for vue-loader to generate code that is compatible with the runtime. Therefore, whenever you update Vue in your project, it is necessary to also update vue-template-compiler to maintain synchronization.
However, when attempting to compile, I encountered the following error message:
Vue packages version mismatch:
- [email protected] (/home/alejo/playground/parquesFrontend/node_modules/vue/index.js)
- [email protected] (/home/alejo/playground/parquesFrontend/node_modules/vue-template-compiler/package.json)
This discrepancy may lead to erroneous functionality. Ensure both versions match.
If you are using vue-loader@>=10.0, simply update vue-template-compiler.
If you are using vue-loader@<10.0 or vueify, re-installing vue-loader/vueify should automatically bump up vue-template-compiler to the latest version.
Furthermore, when I attempted to install [email protected], I encountered the following error:
❯ npm install [email protected]
npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected].
npm ERR! notarget In most cases, either you or one of your dependencies is requesting
npm ERR! notarget a non-existent package version.
npm ERR! For more details, refer to the full log:
npm ERR! /home/alejo/.npm/_logs/2020-11-17T02_52_46_458Z-debug.log
How can I go about resolving this issue?