Skip to content

Commit c593e88

Browse files
vuejs-jp-botkazupon
authored andcommitted
fix vue component require syntax for modern vue-loader (#665)
1 parent a2cc1ad commit c593e88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1329,7 +1329,7 @@ Failed to mount component: template or render function not defined.
13291329

13301330
``` js
13311331
beforeCreate: function () {
1332-
this.$options.components.TreeFolderContents = require('./tree-folder-contents.vue')
1332+
this.$options.components.TreeFolderContents = require('./tree-folder-contents.vue').default
13331333
}
13341334
```
13351335

0 commit comments

Comments
 (0)