Closed vrady closed 1 year ago
We are facing the same issue and it's blocking our migration !
Hi,
Same issue after migrating to Angular 15.1.1.
I add this clarification:
#Once you comment initialNavigation: true for LocalizeRouterModule and change initialNavigation for RouterModule to enabledBlocking the application bootstrapped:
After commenting out the "InitialNavigation: true" for the LocalizeRouterModule:
Thanks!
We have the same issue.
Thank's all for your investigation. As @karimzg says, you can remove all notions of "InitialNavigation" to make it works for now. I need to investigate because Angular did alot of changes into its Router.
@gilsdav Do you think you could find a solution?
Hi, @gilsdav! Thank you for the amazing library!
Are you able to find some time for this issue?
We are using SSR and do need InitialNavigation. The library is blocking us now from upgrading to the latest angular updates.
I have this issues too, any solutions?
"@angular": "^15.2.1"
"@gilsdav/ngx-translate-router": "^6.0.0",
"@gilsdav/ngx-translate-router-http-loader": "^2.0.0",
Hi @gilsdav.
I've created PR which should resolve this issue https://github.com/gilsdav/ngx-translate-router/pull/143.
Please check it out. I tried for myself and this fix works for my project
@gilsdav/ngx-translate-router@6.1.0 published
Current Behavior
After upgrading to Angular 15.1.1 from Angular 15.0.4 the application don't bootstrap
The problem with initial navigation. As documentation said we need to use
initialNavigation: 'disabled'
forRouterModule
and useinitialNavigation: true
forLocalizeRouterModule
But with this config application not started as well. There is no errors in console too
Once you comment
initialNavigation: true
forLocalizeRouterModule
and changeinitialNavigation
forRouterModule
toenabledBlocking
the application bootstrapped:I guess the problem with this line of code https://github.com/gilsdav/ngx-translate-router/blob/e0d92ba73098f1c3d7b0d3ec2309c9f25ce5454f/projects/ngx-translate-router/src/lib/localize-router.service.ts#L64 Because if you call
router.initialNavigation()
for example inAPP_INITIALIZER
afterLocalizeRouterService
initialized with hookinitialized
the application will be bootstrapped. But this calling cause another issue for med with RouterStore from NgRX.Maybe there are some breaking changes in Angular 15.1 for the library with
Router
. Maybe now we need to callrouter.initialNavigation()
in another place ofLocalizeRouterService
.@gilsdav can you check this problem? Thanks :)