環境
vue 2.6.12
エラー内容
You are using the runtime-only build of Vue where the template compiler is not available.
Either pre-compile the templates into render functions, or use the compiler-included build.
解決方法
- プロジェクトディレクトリ直下に vue.config.jsを作成
- module.exports = { runtimeCompiler: true, } を追加
vue.config.js
module.exports = {
runtimeCompiler: true,
}