question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Cannot match any routes" after page refresh

See original GitHub issue

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”

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
2f4f4fcommented, Mar 25, 2017

@meeroslav What about Angular 4.0.0 support?

1reaction
meeroslavcommented, Apr 18, 2017

Version 0.7.0 supports Angular 4

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found