login-tab-navigation-ng icon indicating copy to clipboard operation
login-tab-navigation-ng copied to clipboard

Error: Cannot reattach ActivatedRouteSnapshot with a different number of children

Open vahidvdn opened this issue 5 years ago • 1 comments

Just change these in the repo to see the error:

Change the default path in app-routing.module.ts to tabs:

{ path: "", redirectTo: "/tabs/default", pathMatch: "full" },
  1. Navigate to welcome from tabs.
  2. Navigate to tabs from welcome.
  3. Navigate to welcome from tabs.
  4. Press the back button or routerExtension.back() in welcome.
  5. See the errors.

Error:

JS: Error: Cannot reattach ActivatedRouteSnapshot with a different number of children
JS:     at setFutureSnapshotsOfActivatedRoutes (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1950:19) [angular]
JS:     at setFutureSnapshotsOfActivatedRoutes (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1954:13) [angular]
JS:     at createNode (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1935:17) [angular]
JS:     at file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1975:20 [angular]
JS:     at Array.map (<anonymous>) [angular]
JS:     at createOrReuseChildren (file:///data/data/org.nativescript.tns57/files/app/tns_modules/@angular/router/bundles/router.umd.js:1958:30) [angular]
JS:     at createNode (file:///data/data/org...

More detail in nativescript-angular repo's issue.

vahidvdn avatar May 21 '19 13:05 vahidvdn

@vakrilov Any idea on this?

vahidvdn avatar May 23 '19 13:05 vahidvdn