diff --git a/src/compiler/parser/index.js b/src/compiler/parser/index.js index 42db23760e..05247cae2a 100644 --- a/src/compiler/parser/index.js +++ b/src/compiler/parser/index.js @@ -149,7 +149,7 @@ export function parse ( // final children cleanup // filter out scoped slots - element.children = element.children.filter(c => !c.slotScope) + element.children = element.children.filter(c => !(c: any).slotScope) // remove trailing whitespace node again trimEndingWhitespace(element) @@ -642,7 +642,7 @@ function processSlotContent (el) { el ) } - if (!maybeComponent(el.parent)) { + if (el.parent && !maybeComponent(el.parent)) { warn( `