diff --git a/src/services/file/TypescriptFile.ts b/src/services/file/TypescriptFile.ts index 88a9c5c4..70adbed3 100644 --- a/src/services/file/TypescriptFile.ts +++ b/src/services/file/TypescriptFile.ts @@ -89,7 +89,7 @@ export class TypescriptFile extends StdFile { // eslint-disable-next-line no-case-declarations const modules: ITypescriptImportModules = {}; for (const element of namedBindings.elements) { - const propertyName = element?.propertyName?.escapedText?.toString(); + const propertyName = element?.propertyName?.text; const elementName = element.name.escapedText.toString(); const moduleName: string = propertyName ?? elementName; modules[moduleName] = propertyName ? elementName : ""; diff --git a/yarn.lock b/yarn.lock index 6f54f83f..6632059d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4254,9 +4254,9 @@ typescript@^3.2.4: integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q== typescript@^5.1.6, typescript@^5.5.4: - version "5.5.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.4.tgz#d9852d6c82bad2d2eda4fd74a5762a8f5909e9ba" - integrity sha512-Mtq29sKDAEYP7aljRgtPOpTvOfbwRWlS6dPRzwjdE+C0R4brX/GUyhHSecbHMFLNBLcJIPt9nl9yG5TZ1weH+Q== + version "5.6.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0" + integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw== uc.micro@^2.0.0, uc.micro@^2.1.0: version "2.1.0"