diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c807406d534..dc9f5d07b2d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -751,7 +751,10 @@ module ts { forEach(symbol.declarations, node => { if (node.kind === SyntaxKind.SourceFile || node.kind === SyntaxKind.ModuleDeclaration) { forEach((node).exportStars, exportStar => { - visit(resolveExternalModuleName(exportStar, exportStar.moduleSpecifier)); + var moduleSymbol = resolveExternalModuleName(exportStar, exportStar.moduleSpecifier); + if (moduleSymbol) { + visit(moduleSymbol); + } }); } });