首页IT科技vue ui命令报错(Vue 解决报错 You are using the runtime-only build of Vue where the template compiler is not available.)

vue ui命令报错(Vue 解决报错 You are using the runtime-only build of Vue where the template compiler is not available.)

时间2025-05-02 16:52:25分类IT科技浏览4624
导读:报错信息...

报错信息

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

创心域SEO版权声明:以上内容作者已申请原创保护,未经允许不得转载,侵权必究!授权事宜、对本内容有异议或投诉,敬请联系网站管理员,我们将尽快回复您,谢谢合作!

展开全文READ MORE
帝国cms栏目分类(经典帝国CMS自定义函数取得顶级栏目名称的方法) nodejs axios gzip(Nodejs axios模块使用整理)