diff --git a/lib/tsserver.js b/lib/tsserver.js index 0dcbf6ac9175c..91c89835edaf0 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -106106,7 +106106,7 @@ var ts; // If the symbol/moduleSymbol was a merged symbol, it will have a new identity // in the checker, even though the symbols to merge are the same (guaranteed by // cache invalidation in synchronizeHostData). - if (suggestion.symbol.declarations) { + if (suggestion.symbol.declarations && suggestion.symbol.declarations[0]) { suggestion.symbol = checker.getMergedSymbol(suggestion.origin.isDefaultExport ? suggestion.symbol.declarations[0].localSymbol || suggestion.symbol.declarations[0].symbol : suggestion.symbol.declarations[0].symbol);