Commit e73e910
committed
fix(@angular/build): handle empty module case to avoid TypeError
Ensure that accessing the module after invalidation doesn't result in an empty module, which causes a `TypeError: ɵgetOrCreateAngularServerApp is not a function`.
Closes #29458
(cherry picked from commit 8e884a0)1 parent e1c8e05 commit e73e910
File tree
2 files changed
+16
-16
lines changed- packages/angular/build/src
- builders/dev-server
- tools/vite/middlewares
2 files changed
+16
-16
lines changedLines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
501 | 501 | | |
502 | 502 | | |
503 | 503 | | |
504 | | - | |
| 504 | + | |
505 | 505 | | |
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | 509 | | |
| 510 | + | |
522 | 511 | | |
| 512 | + | |
523 | 513 | | |
524 | 514 | | |
525 | 515 | | |
526 | 516 | | |
527 | 517 | | |
528 | 518 | | |
529 | 519 | | |
530 | | - | |
531 | | - | |
532 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
533 | 528 | | |
534 | 529 | | |
535 | 530 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
| |||
0 commit comments