| 7804 | } |
| 7805 | |
| 7806 | function checkRootConstraints (el) { |
| 7807 | if (process.env.NODE_ENV !== 'production') { |
| 7808 | if (el.tag === 'slot' || el.tag === 'template') { |
| 7809 | warnOnce( |
| 7810 | "Cannot use <" + (el.tag) + "> as component root element because it may " + |
| 7811 | 'contain multiple nodes.' |
| 7812 | ); |
| 7813 | } |
| 7814 | if (el.attrsMap.hasOwnProperty('v-for')) { |
| 7815 | warnOnce( |
| 7816 | 'Cannot use v-for on stateful component root element because ' + |
| 7817 | 'it renders multiple elements.' |
| 7818 | ); |
| 7819 | } |
| 7820 | } |
| 7821 | } |
| 7822 | |
| 7823 | // tree management |
| 7824 | if (!root) { |