使用easyui for vue框架时出现错误:
[Vue warn]: 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.
解决办法
- main.js中使用以下方法引入Vue
import Vue from 'vue/dist/vue.esm.js'
- vue.config.js中配置以下项目
module.exports = {
runtimeCompiler: true,//runtime-only时写true
};
- 重启项目
感谢用户:
https://blog.csdn.net/wxl1555/article/details/83187647