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 ,对照自己的代码模式对号入座

 

 

posted @ 2019-03-21 11:33  林玖女神  阅读(3984)  评论(0编辑  收藏  举报