localize-router: "Cannot match any routes" after page refresh

I got “Cannot match any routes” after page refresh in my appliaction. Without localize-router everything work fine.

With: LocalizeRouterModule.forRoot(appRoutes) in my app.module.ts I got an error in the browser.

@angular/cli”: “1.0.0-beta.31” “@angular/compiler-cli”: “>=4.0.0-beta <5.0.0” “@angular/common”: “>=4.0.0-beta <5.0.0” “@angular/compiler”: “>=4.0.0-beta <5.0.0” “@angular/core”: “>=4.0.0-beta <5.0.0” “@angular/http”: “>=4.0.0-beta <5.0.0” “@angular/platform-browser”: “>=4.0.0-beta <5.0.0” “@angular/platform-browser-dynamic”: “>=4.0.0-beta <5.0.0” “@angular/router”: “>=4.0.0-beta <5.0.0” “ng2-translate”: “5.0.0” “localize-router”: “0.6.2”

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19

Most upvoted comments

@meeroslav What about Angular 4.0.0 support?

Version 0.7.0 supports Angular 4

The new version should be there in few days, I’m working on tests.

In the meantime, if you don’t mind npm complaining, version 0.6.4 is fully functional with Angular Core 2.4.9 (and Angular Router 3.4.9).

Resolved with Angular version 2.4.9