【Vue】You may have an infinite update loop in a component render function.

在这里插入图片描述
a、版本问题 升级vue到最高版本 :npm update vue -s

升级后会出现与vue-template-compiler不一致问题 执行下边代码

b、
vue项目,package.json中Vue和vue-template-compiler版本不一致时,执行npm run dev有时会报错,提示vue和vue-template-compiler版本不匹配的问题,
解决方法如下:
第一步:执行npm uninstall vue-template-compiler
第二步:执行npm install vue-template-compiler@报错中提示的vue的版本号

猜你喜欢

转载自blog.csdn.net/qq_39583930/article/details/88849312