-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hello,
it seems, that the extensions doesn't work with Angular 21 anymore. Especially the loadChildren() seems problematic.
Here is a minimal routing example:
// de.json
{
"ROUTES.my-home": "home",
"ROUTES.my-login": "login",
"ROUTES.my-subcomponent": "subcomponent"
}
//app.routes.ts
export const routes: Routes = [
{
path: 'my-home',
loadChildren: () => import('./home/home.routes')
},
{
path: 'my-login',
component: Login
}
];
//home.routes.ts
const homeRoutes: Routes = [
{
path: '',
component: Home,
children: [
{
path: 'my-subcomponent',
component: Subcomponent,
},
]
}
];
Trying to open the url /de/home/subcomponent throws an error in the console:
main.ts:5 ERROR TypeError: Cannot read properties of undefined (reading 'some')
at containsEmptyPathMatches (_router-chunk.mjs:2744:17)
at split (_router-chunk.mjs:2703:38)
at Recognizer.<anonymous> (_router-chunk.mjs:2942:9)
at Generator.next (<anonymous>)
at fulfilled (chunk-CNSXMD5J.js?v=e0031a75:36:24)
Trying to open the url /de/login does work.
With Angular v20 everything works as expected
Cheers,
Mike
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels