Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 39d6bb6

Browse filesBrowse files
committed
fix for vue2 render: h(App) [Vue warn]: Failed to mount component: template or render function not defined.
1 parent 4ff00a4 commit 39d6bb6
Copy full SHA for 39d6bb6

File tree

Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-3
lines changed

‎src/examples/index.html

Copy file name to clipboardExpand all lines: src/examples/index.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<link rel="icon" href="static/vue.png" type="image/x-icon">
77
</head>
88
<body>
9-
<app></app>
9+
<div id="app"></div>
1010
<!-- built files will be auto injected -->
1111
</body>
1212
</html>

‎src/examples/main.js

Copy file name to clipboardExpand all lines: src/examples/main.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ Vue.use(VueThreejs)
66

77
/* eslint-disable no-new */
88
new Vue({
9-
el: 'body',
10-
components: { App }
9+
el: '#app',
10+
render: h => h(App)
1111
})

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.