From f2c48f535250d01133a5e49c0bf2c26a46b6d935 Mon Sep 17 00:00:00 2001 From: Travis Date: Fri, 13 May 2022 09:08:28 +0800 Subject: [PATCH] fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404) --- packages/compiler-sfc/src/compileScript.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 658b0fd0c7b..ed993521fc5 100644 --- a/packages/compiler-sfc/src/compileScript.ts +++ b/packages/compiler-sfc/src/compileScript.ts @@ -1207,7 +1207,7 @@ export function compileScript( checkInvalidScopeReference(propsRuntimeDecl, DEFINE_PROPS) checkInvalidScopeReference(propsRuntimeDefaults, DEFINE_PROPS) checkInvalidScopeReference(propsDestructureDecl, DEFINE_PROPS) - checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_PROPS) + checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_EMITS) // 6. remove non-script content if (script) {