We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc78242 commit 16ce0f1Copy full SHA for 16ce0f1
src/entries/web-runtime-with-compiler.js
@@ -16,6 +16,14 @@ Vue.prototype.$mount = function (
16
hydrating?: boolean
17
): Component {
18
el = el && query(el)
19
+
20
+ if (el === document.body || el === document.documentElement) {
21
+ process.env.NODE_ENV !== 'production' && warn(
22
+ `Do not mount Vue to <html> or <body> - mount to normal elements instead.`
23
+ )
24
+ return this
25
+ }
26
27
const options = this.$options
28
// resolve template/el and convert to render function
29
if (!options.render) {
0 commit comments