vue-template-compiler throws "Vue packages version mismatch" in Vue3 project
Summary
vue-template-compiler
(dependency in @vuedoc/parser
) throws the following, in Vue3 project:
Vue packages version mismatch:
- vue@3.2.41 (/Path/to/project/node_modules/vue/index.js)
- vue-template-compiler@2.7.13 (/Path/to/project/node_modules/vue-template-compiler/package.json)
This may cause things to work incorrectly. Make sure to use the same version for both.
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 bump vue-template-compiler to the latest.
Steps to reproduce
In a Vue3 project (you can spin up a test project with npm init vue@3
):
yarn add -D @vuedoc/parser@4.0.0-beta12 @vuedoc/md@4.0.0-beta8
yarn vuedoc-md src/App.vue
(Latest versions as of writing this)
Am I doing something wrong?
What is the current bug behavior?
Runs vue-template-compiler
in a Vue3 project.
What is the expected correct behavior?
Should not run vue-template-compiler
in a Vue3 project. I would think...
Edited by Steffen Agger