Skip to content

Commit a4044bf

Browse files
committed
Fix error "Cannot read property 'externalModuleIndicator' of undefined"
1 parent 40cfd1f commit a4044bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/api-extractor/src/generators/DeclarationReferenceGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export class DeclarationReferenceGenerator {
212212
followedSymbol.declarations
213213
&& followedSymbol.declarations[0]
214214
&& followedSymbol.declarations[0].getSourceFile();
215-
if (ts.isExternalModule(sourceFile)) {
215+
if (sourceFile && ts.isExternalModule(sourceFile)) {
216216
parentRef = new DeclarationReference(this._sourceFileToModuleSource(sourceFile));
217217
} else {
218218
parentRef = new DeclarationReference(GlobalSource.instance);

0 commit comments

Comments
 (0)