日常问题---Vue项目报错:You are using the runtime-only build of Vue where the template compiler is not availa

红太狼 2023-01-01 03:44 287阅读 0赞

问题:

  1. \[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。可以将模板预编译为呈现函数,也可以使用编译器包含的内部版本。

解决:

  1. Vue项目配置文件加入配置:runtimeCompiler : true

20201231092113601.png

发表评论

表情:
评论列表 (有 0 条评论,287人围观)

还没有评论,来说两句吧...

相关阅读