[Solved] Syntax Error: TypeError: Cannot read property ‘parseComponent‘ of undefined

An error was found while running the Vue project

Syntax Error: TypeError: Cannot read property 'parseComponent' of undefined

Solution: my version numbers of Vue and Vue template compiler are different.

    1. uninstall Vue template compiler first
npm uninstall vue-template-compiler
      1. reinstall NPM uninstall Vue template compiler. The version number is the same as Vue
 npm install [email protected]

Finally, run NPM run serve again

Read More: