Tag Archives: TypeError:Cannot read property ‘parseComponent’ of undefined

[Solved] Vue Upgrade Error: TypeError:Cannot read property ‘parseComponent’ of undefined

About: Vue upgrade causes typeerror: cannot read property ‘parsecomponent’ of undefined   problem

reason:

vue-template-compiler

After upgrading the version

The parsecomponent function has been deleted, resulting in   Component compiler utils reported an error.

 

Solution:

View the latest version of component compiler utils( https://github.com/vuejs/component-compiler-utils/releases )

First: delete the old version:

npm uninstall @vue/component-compiler-utils

Then: install the new version (my latest version is 3.1.2)

npm install --dev @vue/[email protected]

The latest version has resolved the dependency on parsecomponent. Problem solving.