環境
vue2 vue-cli3 vue.config.js
報錯
在子組件方式內,調用Vue.component定義組件,並在子組件中使用
You are using the runtime-only build of Vue where the template compiler
原因
應該是當前系統需要vue版本是runtime-only的
解決
在vue.config.js定義
vue2 vue-cli3 vue.config.js
在子組件方式內,調用Vue.component定義組件,並在子組件中使用
You are using the runtime-only build of Vue where the template compiler
應該是當前系統需要vue版本是runtime-only的
在vue.config.js定義