百变鹏仔-专注前端行业精选
VUE You are using the runtime-only build of Vue where the template compiler is not available. Either
作者:鹏仔先生 日期:2024-02-22 16:09:10 浏览:3489 分类: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 启动即可。
猜你还喜欢
- 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页面跳转的几种方式
- 04-19 VUE实现点击复制
- 04-16 vue将页面生成图片 vue生成海报
- 04-16 vue路由切换滑动效果 vue页面跳转交互 vue实现动画跳转
- 04-07 vue跳转页面清除历史记录,页面跳转删除历史记录