Command
serve
Is this a regression?
The previous version in which this bug was not present was
19.0
Description
Commit 6edb908 introduced a error message to indicate that UrlMatcher is not supported with SSR.
After further discussion in #29384 @alan-agius4 described that moving back to the CommonEngine might solve the issue, as only the AngularNodeAppEngine does not support the UrlMatcher in SSR Mode.
Minimal Reproduction
Unfortunately this is not resolving the issue. I created the following reproduction which shows that both applications (either with CommonEngine or AngularNodeAppEngine) are crashing as soon as a matcher function is used in the Router Config.
https://github.com/ynmstudio/bug-angular-19.1-commonengine-matcher-crash
CommonEngine
cd repro-app-commonengine
npm install
npm start
AngularNodeAppEngine
cd repro-app-appengine
npm install
npm start
Exception or Error
both applications fail with:
Error(s) occurred while extracting routes:
- The route '/' uses a route matcher which is not supported.
- The route '/' uses a route matcher which is not supported.
Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 19.1.3
Node: 20.18.1
Package Manager: npm 10.8.2
OS: darwin arm64
Angular: 19.1.2
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1901.3
@angular-devkit/build-angular 19.1.3
@angular-devkit/core 19.1.3
@angular-devkit/schematics 19.1.3
@angular/cli 19.1.3
@angular/ssr 19.1.3
@schematics/angular 19.1.3
rxjs 7.8.1
typescript 5.7.3
zone.js 0.15.0
Anything else relevant?
No response
Command
serve
Is this a regression?
The previous version in which this bug was not present was
19.0
Description
Commit 6edb908 introduced a error message to indicate that
UrlMatcheris not supported with SSR.After further discussion in #29384 @alan-agius4 described that moving back to the
CommonEnginemight solve the issue, as only theAngularNodeAppEnginedoes not support theUrlMatcherin SSR Mode.Minimal Reproduction
Unfortunately this is not resolving the issue. I created the following reproduction which shows that both applications (either with
CommonEngineorAngularNodeAppEngine) are crashing as soon as a matcher function is used in the Router Config.https://github.com/ynmstudio/bug-angular-19.1-commonengine-matcher-crash
CommonEngine
cd repro-app-commonenginenpm installnpm startAngularNodeAppEngine
cd repro-app-appenginenpm installnpm startException or Error
both applications fail with:
Your Environment
Anything else relevant?
No response