Skip to content

Commit a43164d

Browse files
committed
improve multi-mount warning
1 parent f64e651 commit a43164d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/directives/component.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ module.exports = {
5454
}
5555
} else {
5656
_.warn(
57-
'v-component="' + this.expression + '" cannot be ' +
58-
'used on an already mounted instance.'
57+
'Do not create a component that only contains ' +
58+
'a single other component - they will be mounted to ' +
59+
'the same element and cause conflict. Wrap it with ' +
60+
'an outer element.'
5961
)
6062
}
6163
},
@@ -278,5 +280,4 @@ module.exports = {
278280
this.cache = null
279281
}
280282
}
281-
282283
}

0 commit comments

Comments
 (0)