diff --git a/packages/async-loader/async.js b/packages/async-loader/async.js index 4319eb6e5..698cbe5fa 100644 --- a/packages/async-loader/async.js +++ b/packages/async-loader/async.js @@ -4,6 +4,7 @@ const PENDING = {}; // Given a VNode, finds its previous element sibling function getPreviousSibling(vnode, inner) { + if (!vnode) return; // in an element parent with no preceeding siblings means we're the first child if (typeof vnode.type === 'string') return null; const parent = vnode.__;