Laravel mix vue-template-compiler must be installed as a peer dependency
The vue and vue-template-compiler module version must be the same in your package.json.
This was my code:
"devDependencies": { "vue": "^2.5.17", "vue-loader": "^15.5.1", "vue-template-compiler": "^2.5.21"},
I changed the vue version to 2.5.21, then ran npm update to update the base version of VueJS.
npm install vue-loader --save-dev
npm install vue-template-compiler --save-dev