Skip to content

fix(@angular/ssr): handle undefined ɵgetOrCreateAngularServerApp#31739

Closed
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:ɵgetOrCreateAngularServerApp

Hidden character warning

The head ref may contain hidden characters: "\u0275getOrCreateAngularServerApp"
Closed

fix(@angular/ssr): handle undefined ɵgetOrCreateAngularServerApp#31739
alan-agius4 wants to merge 1 commit intoangular:mainfrom
alan-agius4:ɵgetOrCreateAngularServerApp

Conversation

@alan-agius4
Copy link
Collaborator

This change fixes 'Error: ɵgetOrCreateAngularServerApp is not a function' which can occur when the dev server stops updating if the user saves while the HTML is in an invalid state.

Closes #31671

This change fixes 'Error: ɵgetOrCreateAngularServerApp is not a function' which can occur when the dev server stops updating if the user saves while the HTML is in an invalid state.

Closes angular#31671
@alan-agius4 alan-agius4 requested a review from clydin November 10, 2025 08:44
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 10, 2025
@Wycza
Copy link

Wycza commented Nov 10, 2025

@alan-agius4 I am not 100% sure if this will resolve this issue. I've applied this changes to ssr.mjs and the error is gone but then there is another issue:

Recording.2025-11-10.163613.mp4

@alan-agius4 alan-agius4 added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: review The PR is still awaiting reviews from at least one requested reviewer action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Nov 10, 2025
@alan-agius4 alan-agius4 removed the request for review from clydin November 10, 2025 15:42
@alan-agius4 alan-agius4 deleted the ɵgetOrCreateAngularServerApp branch November 13, 2025 19:40
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area: @angular/ssr target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error: ɵgetOrCreateAngularServerApp is not a function - dev server stops updating if the user saves while the HTML is in an invalid state

2 participants