
In some cases TypeScript is unable to identify a valid symbol for an export. In this case it returns an "unknown" symbol, which does not reference any declarations. This fix ensures that ngcc does not crash if such a symbol is encountered by checking whether `symbol.declarations` exists before accessing it. The commit does not contain a unit test as it was not possible to recreate a scenario that had such an "unknown" symbol in the unit test environment. The fix has been manually checked against that original issue; and also this check is equivalent to similar checks elsewhere in the code, e.g. https://github.com/angular/angular/blob/8d0de89e/packages/compiler-cli/src/ngtsc/reflection/src/typescript.ts#L309 Fixes #34560 PR Close #34658
build: migrate references and scripts that set to build with ivy via compile=aot to use config=ivy (#33983)
Angular
Angular is a development platform for building mobile and desktop web applications using TypeScript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
86.3%
JavaScript
8.5%
HTML
1.8%
Starlark
1.7%
CSS
1%
Other
0.6%