Skip to content

Commit 1af0a4e

Browse files
LinusBorgchrisvfritz
authored andcommitted
Adjust example for circular component (#1071)
Since vue-loader 13.*, we have to use `require('./component.vue').default` instead of `require('./component.vue')`
1 parent 1d31305 commit 1af0a4e

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
@@ -1288,7 +1288,7 @@ In our case, I'll make that point the `tree-folder` component. We know the child
12881288

12891289
``` js
12901290
beforeCreate: function () {
1291-
this.$options.components.TreeFolderContents = require('./tree-folder-contents.vue')
1291+
this.$options.components.TreeFolderContents = require('./tree-folder-contents.vue').default
12921292
}
12931293
```
12941294

0 commit comments

Comments
 (0)