[Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
2017-08-09 10:29
1036 查看
在开始一个新的项目的时候报了个错 [Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
new Vue({el: '#app',router,template: '<App/>',components: { App }})
我的项目初始化的时候是上面那个样子 。改成下面的样子就没问题。new Vue({el: '#app',router,store,render: h => h(App)})
相关文章推荐
- Failed to mount component: template or render function not defined.
- 解决:Failed to mount component: template or render function not defined
- Failed to mount component: template or render function not defined.
- Vue2+Webpack报错:Failed to mount component: template or render function not defined.
- Failed to mount component: template or render function not defined. 错误的解决方法
- Vue报错笔记(3):[Vue warn]: Failed to resolve directive: mod (found in <ComponentA>)
- vue引入组件无法显示且报错[Vue warn]: Do not use built-in or reserved HTML elements as component id: header
- There is an internal error in the React performance measurement code.Did not expect componentDidMount timer to start while render timer is still in progress for another instance
- [Vue warn]: Do not use built-in or reserved HTML elements as component id:
- vue项目报错'Do not use built-in or reserved HTML elements as component id:'
- [Vue warn]: Failed to resolve directive: on (found in <ComponentA>)
- This application failed to start because it could not find or load the Qt platform plugin "xcb" in "
- vue中渲染数据可能有一个无限更新循环--You may have an infinite update loop in a component render function.
- 关于Struts2报错严重: One or more Filters failed to start. Full details will be found in the appropriate co
- [Vue warn]: Error in render: "TypeError: Cannot read property '0' of undefined、vuejs路由使用的问题Error in render function
- Do not mount Vue to <html> or <body> - mount tonormal elements instead.
- Do not mount Vue to <html> or <body> - mount to normal elements instead.
- Failed to start agent because dependencies were not found in classpath. Error follows.
- Failed to initialize compiler: object scala.runtime in compiler mirror not found
- Vue报错笔记(1)vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but refere