-
Notifications
You must be signed in to change notification settings - Fork 12k
build: unhandled exception error during prerender #29884
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
additional info: API url was starting with |
Are you using |
yes this is the related code, it also uses tanstack query: countriesQuery = injectQuery(() => ({
queryKey: ['countryList'],
queryFn: () => {
return lastValueFrom(this.#profileService.getCountryList());
},
})); |
Prior to this change, request errors were not handled correctly. Closes angular#29884
Prior to this change, request errors were not handled correctly. Closes angular#29884
Prior to this change, request errors were not handled correctly. Closes angular#29884
Prior to this change, request errors were not handled correctly. Closes angular#29884
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
if route fails to prerender due to invalid http url during prerender, it gives following error, so we cannot find route having the error.
Minimal Reproduction
add route with
RenderMode.Prerender
in new app, & call api with invalid http url in that component.(not adding app as bug is clear in existing code, see anything else section)
Exception or Error
Your Environment
Anything else relevant?
See following code:
angular-cli/packages/angular/build/src/utils/server-rendering/prerender.ts
Lines 259 to 262 in c0de723
in this code if err obj is
undefined
it won't log exact error, & error is actually undefined in this case.The text was updated successfully, but these errors were encountered: