Vue 解决报错 You are using the runtime-only build of Vue where the template compiler is not available.
Posted 程序员海军
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Vue 解决报错 You are using the runtime-only build of Vue where the template compiler is not available.相关的知识,希望对你有一定的参考价值。
报错信息
[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的仅运行时版本,并而模板编译器不可用。 可以将模板预编译为渲染函数,也可以使用包含编译器的内部版本
在主入口渲染的组件方式不一样,上面这种是采用的 render函数渲染 ,没有进行 runtime-only 配置,所以报错了。
解决方案
在 vue.config.js 中进行配置 runtimeCompiler 为 true 即可。
module.exports =
runtimeCompiler: true,
“You are using pip version 19.0.3, however version 20.0.2 is available.”pip 更新报错解决办法
“You are using pip version 19.0.3, however version 20.0.2 is available.”pip 更新报错解决办法
执行更新语句时报错如下:
解决办法:使用国内的源下载:
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
pip更新成功。
以上是关于Vue 解决报错 You are using the runtime-only build of Vue where the template compiler is not available.的主要内容,如果未能解决你的问题,请参考以下文章
vue报错:Component template should contain exactly one root element. If you are using v-if on multiple
Unity报错:InvalidOperationException:You are tring to read lnput using the UnityEngine. ……的解决办法。
解决 You are using pip version 7.1.2, however version 18.0 is available.报错
wepy build --watch报错 ERR! Parse WePY config failed. Are you trying to use 解决
wepy build --watch报错 ERR! Parse WePY config failed. Are you trying to use 解决
“You are using pip version 19.0.3, however version 20.0.2 is available.”pip 更新报错解决办法