a-vue-app-template icon indicating copy to clipboard operation
a-vue-app-template copied to clipboard

使用vue-html5-editor时出现错误,错误的大概意思是vue的版本不对,请问有解决的办法吗?

Open Dengniai opened this issue 5 years ago • 1 comments

我使用的vue-cli3.0构建的环境,在引入了vue-html5-editor后有错误出现,错误的意思就是说vue-cli3.0使用的是运行时版本,但是其中有模板需要编译因此出错[图片]

Dengniai avatar Nov 19 '19 09:11 Dengniai

[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.

found in

---> <VueHtml5Editor> <UploadGoods> at src/views/uploadGoods.vue <App> at src/App.vue <Root> vue.runtime.esm.js:619 [Vue warn]: Error in mounted hook: "TypeError: content is undefined"

found in

---> <VueHtml5Editor> <UploadGoods> at src/views/uploadGoods.vue <App> at src/App.vue <Root> vue.runtime.esm.js:619 TypeError: "content is undefined" mounted vue-html5-editor.js:1254 VueJS 12

Dengniai avatar Nov 19 '19 09:11 Dengniai