Syntax Error: TypeError: Cannot read property ‘parseComponent’ of undefined
Vue packages version mismatch
Failed to compile.
./src/App.vue
Module Error (from ./node_modules/vue-loader/lib/index.js):
Vue packages version mismatch:
- [email protected] (D:\site\hst_tech\hst_platform_frontend\node_modules\vue\dist\vue.runtime.common.js)
- [email protected] (D:\site\hst_tech\hst_platform_frontend\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.
Solution:
Set Vue template- [email protected] Version change Vue template- [email protected]
// Just change the version number to the same one
npm i -g [email protected] --save
Read More:
- [Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined
- [Solved] Install The Latest Version of Jest Error: TypeError: Cannot read property ‘instrument‘ of undefined
- [Solved] TYPEERROR: CANNOT READ PROPERTY ‘REDUCE‘ OF UNDEFINED
- [Solved] Syntax Error: TypeError: Cannot set property ‘parent‘ of undefined
- [Solved] Vue Error: TypeError: Cannot read property ‘end‘ of undefined
- [Solved] electron Error: Uncaught TypeError: Cannot read property ‘BrowserWindow‘ of undefined
- Uni-app Error when assigning a value to a component: [system] TypeError: Cannot read property ‘name‘ of undefined
- Echarts Partially introduced error: TypeError: Cannot read property ‘findAxisModel’ of undefined
- Cannot read property ‘isFile‘ of undefined [How to Solve]
- Vue cannot read property ‘xxx’ of undefined solutions
- [Solved] Cannot read property ‘setCheckedKeys‘ of undefined“
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- [Solved] Vue Error: Syntax Error: TypeError: Cannot set properties of undefined (setting ‘XXX’)
- [Solved] HBuilder Error: Cannot read property ‘forceUpdate‘ of undefined
- [Solved] Echarts Error: Cannot read property ‘init‘ of undefined
- [Vue warn]: Error in render: “TypeError: Cannot read properties of undefined
- [Solved] Uni.createintersectionobserver Error: Uncaught TypeError: Cannot read property ‘bottom’ of null
- JS bug Log Uncaught TypeError: Cannot read property ‘previoustSibling‘ of null
- [Solved] Error in callback for watcher “value“: “TypeError: Cannot read property ‘level‘ of null“
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined