From ad4d3915d39515a3e9ff2de691f82cb922a314b9 Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 3 Dec 2020 11:02:53 -0500 Subject: [PATCH] fix(compiler-core): fix missing createVNode import on nested v-for fix #2718 --- packages/compiler-core/src/transforms/vFor.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/compiler-core/src/transforms/vFor.ts b/packages/compiler-core/src/transforms/vFor.ts index aadb07edac7..2d193e60125 100644 --- a/packages/compiler-core/src/transforms/vFor.ts +++ b/packages/compiler-core/src/transforms/vFor.ts @@ -37,7 +37,8 @@ import { RENDER_LIST, OPEN_BLOCK, CREATE_BLOCK, - FRAGMENT + FRAGMENT, + CREATE_VNODE } from '../runtimeHelpers' import { processExpression } from './transformExpression' import { validateBrowserExpression } from '../validateExpression' @@ -168,6 +169,8 @@ export const transformFor = createStructuralDirectiveTransform( if (childBlock.isBlock) { helper(OPEN_BLOCK) helper(CREATE_BLOCK) + } else { + helper(CREATE_VNODE) } }