Closed as duplicate of#29907
Description
Command
serve
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
getting this error after fixing any compile error:
TypeError: ɵgetOrCreateAngularServerApp is not a function
at _AngularAppEngine.eval
Minimal Reproduction
fix any compile error in Angular app having SSR/RenderMode (with application builder) & save file.
I will try to make minimal reproduction later.
Exception or Error
TypeError: ɵgetOrCreateAngularServerApp is not a function
at _AngularAppEngine.eval (/Users/**/**/app-***/.angular/cache/19.2.3/**/vite/deps_ssr/chunk-WFYZZED4.js:11513:25)
at Generator.next (<anonymous>)
at fulfilled (/Users/***/.angular/cache/19.2.3/app-***/vite/deps_ssr/chunk-SF4RXNR5.js:86:24)
Your Environment
Angular CLI: 19.2.3
Node: 22.13.1
Package Manager: yarn 4.7.0
OS: darwin arm64
Angular: 19.2.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1902.3
@angular-devkit/build-angular 19.2.3
@angular-devkit/core 19.2.3
@angular-devkit/schematics 19.2.3
@angular/cli 19.2.3
@angular/ssr 19.2.3
@schematics/angular 19.2.3
rxjs 7.8.2
typescript 5.8.2
zone.js 0.15.0
Anything else relevant?
error only occurs in our SSR app, disabling the hmr makes no difference. & saving file 2nd time after adding space or any new content fixes the error automatically. our other CSR only app doesn't have this issue.
similar closed issue: #29458