百变鹏仔-专注前端行业精选
VUE You are using the runtime-only build of Vue where the template compiler is not available. Either
作者:鹏仔先生日期:2024-02-22 16:09:10浏览:389分类: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-19 VUE实现点击复制
- 04-16 vue将页面生成图片 vue生成海报
- 04-16 vue路由切换滑动效果 vue页面跳转交互 vue实现动画跳转
- 04-07 vue跳转页面清除历史记录,页面跳转删除历史记录
- 01-19 elementui多选上传 before-upload 格式效验错误总会触发before-remove (elementui多选上传on-success只执行了一次,只上传成功了一条)
- 10-08 vue按钮限制连点封装 自定义指令限制连点
- 08-19 使用HBuilderX将vue或H5项目打包app
- 07-15 小程序嵌入网页向小程序跳转并传参,微信小程序中实现公众号授权获取openId
- 07-13 vue中实现文件批量打包压缩下载(以及下载跨域问题分析)
- 07-08 uniapp调用地图,进行位置查询,标记定位
- 11-05 js截取字符串前几位或者截取字符串后几位
- 10-25 js替换字符串某个字符,js修改字符串中指定字符
暂无评论,来添加一个吧。