From aed73ecbc03c227ba7db5e81d83e51aacb6b58d6 Mon Sep 17 00:00:00 2001 From: baseballyama Date: Sun, 23 Jan 2022 16:50:35 +0900 Subject: [PATCH] fix variable name --- src/compiler/compile/Component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts index ed71357bb0..5f7d4b9758 100644 --- a/src/compiler/compile/Component.ts +++ b/src/compiler/compile/Component.ts @@ -196,8 +196,8 @@ export default class Component { if (add_to_lookup) { if (this.var_lookup.has(variable.name)) { - const existsVar = this.var_lookup.get(variable.name); - if (existsVar.module && existsVar.imported) { + const exists_var = this.var_lookup.get(variable.name); + if (exists_var.module && exists_var.imported) { this.error(node as any, compiler_errors.illegal_variable_declaration); } }