Software Workshop

runtime-only build 에러

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-cli로 프로젝트를 생성하고 webpack과 같이 번들링 설정을 하지 않은 경우 발생할 수 있음

해결 방법

vue.conf.js

module.exports = {
  runtimeCompiler: true
}

또는

webpack.config.js

resolve: {
  alias: {
    vue: 'vue/dist/vue.esm.js'
  }
}