vue error tip:You are using the

2018-07-16  本文已影响71人  TOPro

在vue项目中,执行npm run dev,提示:

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

同时页面空白,查看元素看不到任何节点。

直接替换
...
new Vue({
    ...
    components:{App},
    template:`<app></app>`,
    ...
})

new Vue({
    ...
    render: render => render(App),
    ...
})
 

原因尚未知。。英语盲

上一篇 下一篇

猜你喜欢

热点阅读