"Cannot match any routes" after page refresh
See original GitHub issueI 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”
Issue Analytics
- State:
- Created 7 years ago
- Comments:19
Top Results From Across the Web
Error: Cannot match any routes. URL Segment on page ...
Error: Cannot match any routes. URL Segment on page refresh when the page refreshes ; RouterModule.forRoot([ { path ; ViewMeasurements() { this.
Read more >Error: Cannot match any routes - Nishu Goel - Medium
In Angular, when working with routing, we face this error “Cannot match any routes” very commonly. This generally occurs when there is a...
Read more >Route - Angular
The path-match strategy 'full' matches against the entire URL. It is important to do this when redirecting empty-path routes. Otherwise, because an empty...
Read more >Angular Router: Child Routes, Auxiliary Routes, Master Detail
Learn how to use the Angular Router, avoid common pitfalls, learn Child Routes, Auxiliary Routes, setup a Master Detail Routing Scenario.
Read more >Cannot match any routes. URL segment <route link>-angular.js
Move your routes array out of the module ... const routes: Routes = [];. Afterwards, you try to set the array to something...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@meeroslav What about Angular 4.0.0 support?
Version 0.7.0 supports Angular 4