Vue项目用了脚手架vue-cli3.0,会报错You are using the runtime-only build of Vue where the template compiler is not available.....

摘自: https://blog.csdn.net/wxl1555/article/details/83187647

报错信息如下图:

报错原因是:vue有两种形式的代码:一种是compiler(模版),另一种是runtime(运行时)模式。

修改方法:修改main.js ,对照自己的代码模式对号入座

 

原文地址:https://www.cnblogs.com/linjiu0505/p/10570478.html