Please sign in to comment.
fix(core): static-query migration should gracefully exit if AOT compi…
…ler throws (#30269) The static-query template strategy leverages the AOT compiler in order to determine the query timing. Unfortunately the AOT compiler has open bugs that can cause unexpected failures which make the template strategy unusable in rare cases. These rare exceptions need to be handled gracefully in order to avoid confusion and to provide a more smooth migration. Additionally migration strategy setup failures are now reported with stack traces as the `ng update` command does not print stack traces. This makes it easier to reproduce and report migration issues. PR Close #30269
- Loading branch information...
Showing with 85 additions and 31 deletions.
- +25 −7 packages/core/schematics/migrations/static-queries/index.ts
- +7 −9 packages/core/schematics/migrations/static-queries/strategies/template_strategy/template_strategy.ts
- +1 −1 packages/core/schematics/migrations/static-queries/strategies/test_strategy/test_strategy.ts
- +2 −2 packages/core/schematics/migrations/static-queries/strategies/timing-strategy.ts
- +1 −5 packages/core/schematics/migrations/static-queries/strategies/usage_strategy/usage_strategy.ts
- +49 −7 packages/core/schematics/test/static_queries_migration_template_spec.ts