You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
In an Angular Server-Side Rendering (SSR) application, I observed unexpected behavior during the ng build process. Specifically:
The ng build step attempts to execute all the code within the route resolve functions. While this behavior might be expected in a pre-rendered page setup, it does not align with expectations for a server-side rendered application, where the resolve should execute at runtime on the server, not during the build phase.
This issue appears to be isolated to the route defined as path: '**'. Only this wildcard route’s resolve functions are executed during the build process, which seems incorrect and inconsistent with the behavior of other routes.
This behavior poses significant problems for applications relying on internal APIs, as it results in build failures if the APIs are inaccessible from the build environment.
Note that changing the renderMode in the server routes doesn't change any behavior in this regard.
The issue was identified while building the application in a GitHub workflow using ubuntu-latest as the runner. Our internal API, which is accessible only within the internal network, was unreachable during the build process.
Luckily it doesn't terminate the build, but it still feels like an unexpected behavior.
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
In an Angular Server-Side Rendering (SSR) application, I observed unexpected behavior during the ng build process. Specifically:
This behavior poses significant problems for applications relying on internal APIs, as it results in build failures if the APIs are inaccessible from the build environment.
Note that changing the renderMode in the server routes doesn't change any behavior in this regard.
The issue was identified while building the application in a GitHub workflow using ubuntu-latest as the runner. Our internal API, which is accessible only within the internal network, was unreachable during the build process.
Luckily it doesn't terminate the build, but it still feels like an unexpected behavior.
Steps to Reproduce:
Expected Behavior:
For a server-side rendered application:
Please provide a link to a minimal reproduction of the bug
https://github.com/captainDuckay/resolver-problem
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
The text was updated successfully, but these errors were encountered: