Do not mount Vue to <html> or <body> - mount tonormal elements instead.
2017-09-20 14:39
761 查看
1.vue1.x 允许开发者以 <body> 或 <html> 作为根实体的挂载点,但到了VueJS2.0 后,只能通过独立的节点挂载 ,如:div 等。否则会产生错误,警告讯息如下:"Do not mount Vue to <html> or <body> - mount tonormal elements instead." 换成用独立的 DOM 节点,如 <divid="app"></div>, 或者 <div> <app></app> </div> 就可以正常运作了. 2. Vue2.x在loader上不支持直接书写!style!css!style.css;应该为都为每个loader添加一个-loader;
相关文章推荐
- Vue2+Webpack错误:Do not mount Vue to <html> or <body> - mount tonormal elements instead.
- Do not mount Vue to <html> or <body> - mount to normal elements instead.
- vue2.0(新手)第一个坑--do not mount Vue to <body>!!!
- vue2.0(新手)第一个坑--do not mount Vue to <body>!!!
- vue引入组件无法显示且报错[Vue warn]: Do not use built-in or reserved HTML elements as component id: header
- [Vue warn]: Do not use built-in or reserved HTML elements as component id:
- vue Do not use built-in or reserved HTML elements as component id: nav
- vue项目报错'Do not use built-in or reserved HTML elements as component id:'
- [Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
- To Fill or Not to Fill<2011浙大复试机试>
- To Fill or Not to Fill<2011浙大复试机试>
- 解决:Did not expect server HTML to contain the text node " " in <div>.
- YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. </HTML>/ 标签: yum 2014-05-26
- javascript脚本放在HTML中的<head>和<body>的区别:
- HTML标签属性<meta>、<body>
- Java-httpClient警告: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
- (四)vue开发 - 根据vue-router的meta动态设置html里<title>标签的内容
- Python 运算符(算术运算符(+,-,*,**,/,//),逻辑运算符(not , or ,and),比较运算符(>,<,>=,=<),复合运算符(+=,-=,*=,/=,**=,//=))
- HTML Quotation & Citation Elements, Comments, <noscript>
- Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix.