出现:无法编译组件中的template内容,提示:You are using the runtime-only build of Vue where the template compiler is not available
解决方法:由于vue-cli3.0以后精简了很多文件,其中包括去掉了vue.config.js文件,因此需手动在项目根目录下创建此文件,并配置以下内容:
module.exports = {runtimeCompiler: true},然后重新编译生成。
出现:无法编译组件中的template内容,提示:You are using the runtime-only build of Vue where the template compiler is not available
解决方法:由于vue-cli3.0以后精简了很多文件,其中包括去掉了vue.config.js文件,因此需手动在项目根目录下创建此文件,并配置以下内容:
module.exports = {runtimeCompiler: true},然后重新编译生成。
本文标题:You are using the runtime-only b
本文链接:https://www.haomeiwen.com/subject/vvsiertx.html
网友评论