If the following error occurs, the probability is that the vue-template-compiler dependency is not installed properly due to an exception in the middle of the install, just reinstall it
Syntax Error: TypeError: Cannot read properties of undefined (reading 'parseComponent')
You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.
1. Yarn add vue-template-compiler
or npm add vue-template-compiler
2. Finally, if it still doesn’t work, use
yarn upgrade –latest vue-template-compiler
npm upgrade –latest vue-template-compiler