diff --git a/packages/compiler-sfc/src/compileScript.ts b/packages/compiler-sfc/src/compileScript.ts index 658b0fd0c..ed993521f 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) {