Skip to content

Instantly share code, notes, and snippets.

@deepak-cotocus
Last active November 5, 2020 09:37
Show Gist options
  • Save deepak-cotocus/833dbbe09d66ae8efcf2149b65bca197 to your computer and use it in GitHub Desktop.
Save deepak-cotocus/833dbbe09d66ae8efcf2149b65bca197 to your computer and use it in GitHub Desktop.
Vue packages version mismatch error fix

Error:

Vue packages version mismatch:

  • vue@2.6.11
  • vue-template-compiler@2.5.16

Introduction:

Though the version of the Vue-template-compiler is older than that of the Vue I just updated it to same version number as the Vue thus 2.6.11 In your case the number might not be same as mine so replace the version which shows in your error.

Error:

ERROR in ./resources/assets/js/components/ExampleComponent.vue
Module build failed: Error:

Vue packages version mismatch:

- vue@2.6.11
- vue-template-compiler@2.5.16

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.

image

Solution

npm install vue-template-compiler@2.6.11 --save-dev

It worked for me....

Then run npm run prod and check evrything will work fine.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment