在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),
...
})
原因尚未知。。英语盲
网友评论