在vue-cli3中compiler是不被使用的 ,所以compiler换成runtimeCompiler,就可以啦 转载于:https://www.cnblogs.com/MsHibiscus/p/10734645.html