百变鹏仔-专注前端行业精选
VUE You are using the runtime-only build of Vue where the template compiler is not available. Either
作者:鹏仔先生 日期:2024-02-22 16:09:10 浏览:3723 分类:JavaScript
本次使用VUE开发H5项目中安装了vue-html5-editor富文本编辑器,结果报错以下问题
[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.
[Vue warn]: Error in mounted hook: "TypeError: Cannot set properties of undefined (setting 'innerHTML')"
解决方法,在vue.config.js文件中配置如下所示
module.exports = { runtimeCompiler: true }
配置完后,先终止项目,重新 npm run serve 启动即可。
猜你还喜欢
- 04-24 简单实现文字两端对齐
- 04-24 检测图片URL是否失效
- 04-24 elemetui中el-date-picker限制开始结束日期只能选择当月
- 04-24 iview中DatePicker时间段选择限制开始结束日期只能选择当月
- 03-24 vue h5实现车牌号输入框
- 11-01 vue中实现代码高亮
- 08-09 vue动态修改网站的icon图标
- 07-08 VUE中ECharts提示框tooltip自动切换
- 07-03 网页中生成微信小程序二维码
- 07-02 微信小程序判断是安卓还是苹果
- 06-28 vue实现表格自动滚动功能 vue-seamless-scroll
- 06-25 uniapp页面跳转的几种方式