vue-template-compiler must be installed as a peer dependency...

vue项目启动报错 vuevue-template-compiler版本不一致 【代码】vue项目启动报错 vuevue-template-compiler版本不一致。 This may cause things to work incorrectly. Make sure to use the same version for both. If you are using vue-loader@>=10.0, simply update vue-template-compiler. If you are using vue-loader@ 阅读详情

场景

运行vue项目的时候报如下错误
vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options

解决

当前报错是由于我们按照的vue的版本与vue-template-compiler的版本不一致导致的。将版本保持一致即可解决问题。例如下图。

"vue": "^2.6.10",
"vue-template-compiler": "^2.6.10"

遇到两次了,在此记录一下下。

升级 Vue版本从 2.5.x 到 2.6.x 最近项目中需要使用某些第三方插件,但是第三方插件对 vue 的版本有要求。插件要求 vue版本为vue2.6.x的,而我现有的环境是vue2.5.x的。记录一下 升级 Vue 版本从2.5.x到2.6.x的过程。 阅读详情

相关推荐

Cursor Custom Agents:TypeScript驱动的智能体运行时与CI/CD自动化实践

Custom Agents 是一种基于 TypeScript 的可编程智能体范式,其核心是轻量级、沙盒化的 agent runtime 运行时环境,而非传统 AI 插件或黑盒调用封装。它通过 Zod 契约定义输入、TS 函数编排执行逻辑、上下文感知的 ctx 接口实现高可控性与可观测性,天然适配 CI/CD 等规则明确、重复高频、需审计回溯的工程场景。相比 GitHub Actions YAML 或 Shell 脚本,它提供进程隔离、执行快照、事件驱动编排与调试即运行等生产级能力;而 TypeScript

angzhan5306的博客 413

vue-loader和vue-template-compiler版本不一致问题

【代码】vue-loader和vue-template-compiler版本不一致问题。

芳草萋萋鹦鹉洲哦 1424

Autosar诊断实战系列05-Dcm之0x27加解密服务配置开发详解

UDS 0x27服务实战开发介绍,对解锁尝试次数及delay时间进一步解释。

initiallizer的博客 1933

已解决 Bug: Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a comp

猫头虎博主来了!。我们将一起了解这个 Bug 的原因,解决方法,以及如何避免。希望大家能够从中受益,少走弯路。Vue 是一个强大且灵活的前端框架,但在使用过程中,我们仍然需要注意依赖关系和版本匹配的问题。希望通过这篇文章,大家可以更好地理解和解决这个特定的 Bug,提高开发效率。

从前端设计到后端实现,从云技术到人工智能,这里分享最新的技术见解和实践经验。一起学习,一起进步! 1117

Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible co

报错的大概意思就是:你当前的 vue版本和vue-template-complier版本不匹配,八字不合! vue 启动时,出现以下错误: Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options. 把node_modules 删除之后,输入以下命令(一定这个顺序):.

阿小绿的博客 2645

vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementatio

升级webpack3 ->4 导致的报错 Module Error (from ./node_modules/vue-loader/lib/index.js): [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation m...

qq_39882537的博客 7977

vue-template-compiler must be installed as a peer dependency

[vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compil… 解决: 查看package.json 发现"vue": “^2.5.2”,,“vue-template-compiler”: “^2.5.17”, 暗暗自喜,找到问题了,果断cnpm install vue-template-compiler@2.5.2 --save-dev,很简单嘛。 再npm run dev

weixin_45014243的博客 1405

猫头虎分享已解决Bug || Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or

嗨,前端朋友们,猫头虎博主又来啦!🐾 今天我们要一起探讨一个在使用Vue.js时经常遇到的问题:“Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options”。这个错误可能会在你使用webpack打包Vue应用时出现。

从前端设计到后端实现,从云技术到人工智能,这里分享最新的技术见解和实践经验。一起学习,一起进步! 816

[vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler

在使用webpack5打包vue的时候报错([vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options.) 在网上查阅Webpack 默认只会解析[’.js’, ‘.json’, ‘.wasm’]这三种格式的文件,如果想识别vue需要使用extensions module.exports

mmiaoChong的博客 828

猫头虎分享已解决Bug || Error: [vue-loader] vue-template-compiler must be installed as a peer dependency

大家好,我是猫头虎,一名专注于前端领域的技术博主。今天我们要探讨的问题是关于 Vue.js 开发中常见的一个编译错误:“vue-template-compiler must be installed as a peer dependency”。在这篇博文中,我们将深入挖掘这个问题的根源,并提供一系列的解决方案。不仅如此,我们还会探讨如何预防此类错误,并通过代码示例来加深理解。🌟📚问题原因解决方法预防措施vue-template-compiler 缺失或版本不匹配版本不兼容或缺少依赖。

从前端设计到后端实现,从云技术到人工智能,这里分享最新的技术见解和实践经验。一起学习,一起进步! 1056

[vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compil

解决: 查看package.json 核对"vue","vue-template-compiler"版本 改为一致的,删除原来的node_modules下的"vue","vue-template-compiler" 重新install 再build就好了。。。 这种情况下,npm run dev 并无问题 ...

songshuguowang的专栏 3282

Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible...

这两天学习webpack,安装vue搞出一个一个错误:查资料解决后记录一下,奉上参考地址,在这记录一下,防止遗忘 https://blog.csdn.net/qq_42899245/article/details/118189209 Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed

秃头小吴 1061

Webpack 配置Vue的环境的几个错误

有几个个常见的错误。 第一个是 webpack打包后网页没有正常显示,console中提示错误 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. 很明显我们用的编译器不太对,所以需要修改一下

CloudWaves的博客 489

Vue加载单文件使用vue-loader报错

报错信息如下 Module Error (from ./node_modules/vue-loader/lib/index.js): vue-loader was used without the corresponding plugin. Make sure to include VueLoaderPlugin in your webpack config. 原因 参考官方文档 ...

izwell的博客 8584

vue 启动Module build failed (from ./node_modules/vue-loader/lib/index.js)

vue 启动时,出现以下错误: Error: [vue-loader] vue-template-compiler must be installed as a peer dependency, or a compatible compiler implementation must be passed via options. 把node_modules 删除之后,输入以下命令(一定这个顺...

baidu_28610773的博客 8万+

解决npm错误总结

1、npm WARN extract-text-webpack-plugin@4.0.0-beta.0 requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself. 解决方法: npm install webpack@^4.0.0 2、vue-loader@13.7.3 requires a peer of vue-template-com

yshir 4906

笔记)Vue3/VueCli(创建/配置/报错)

创建项目以及报错处理-命令

主要用于自己跨设备浏览文章。不知道自己写了什么,有些是AI总结的,仅供参考。 226

当前的 vue版本和vue-template-complier版本不匹配

解决vue版本和vue-template-compiler版本不匹配问题

lj1641719803hh的博客 778

解决vuevue-template-compiler版本不一致问题

其实是vuevue-cli的版本不匹配,需要将vue的版本与vue-template-compiler的版本调一致就可以了。将“版本”替换为vue-template-compiler的版本。

weixin_45969944的博客 3022

华为面试手撕真题【求1-n的最小公倍数】

求1-n的最小公倍数

MISAYAONE的博客 2万+

基于反步控制永磁同步电机控制仿真

基于反步控制永磁同步电机控制仿真

上一篇: vue运行或打包时报错Cannot read property ‘parseComponent‘ of undefined
下一篇: vue项目使用luckyexcel预览excel表格
悦悦猪
博客等级 码龄10年 33粉丝 · 83原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值