Vue 起動プロジェクト エラー 未定義のプロパティを読み取れません ('parseComponent' を読み込んでいます)

次のエラーが発生した場合は、インストール途中で例外が発生したため、vue-template-compiler の依存関係が正しくインストールされていない可能性があります。再インストールしてください。

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
または npm add vue-template-compiler
2. 最後に、それでも動作しない場合は、
yarn upgrade –latest vue-template-compiler
npm upgrade –latest vue-template-compilerを使用します。

おすすめ

転載: blog.csdn.net/weixin_43051544/article/details/130063857