ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.92k stars 13.51k forks source link

Ionic 4 tabs router crash after go to next page #14502

Closed danielehrhardt closed 5 years ago

danielehrhardt commented 6 years ago

Bug Report

Ionic Info

cli packages: (C:\Users\Daniel Ehrhardt\AppData\Roaming\npm\node_modules)

   @ionic/cli-utils  : 2.0.0-alpha.0405736c
   ionic (Ionic CLI) : 4.0.0-alpha.0405736c

local packages:

   @angular/cli    : 6.0.1
   @ionic/core     : 4.0.0-alpha.7
   Ionic Framework : @ionic/angular 4.0.0-alpha.7

System:

   NodeJS : v8.11.2
   npm    : 6.0.1
   OS     : Windows 10

Describe the Bug If i want to use a button with a nav.goForward or a routerlink inside a tab page the app crash after i click the Button and Go Back.

Steps to Reproduce Steps to reproduce the behavior:

  1. Download the Ionic 4 Tabs Starter
  2. Add a test page
  3. Create the Route to the Page
  4. Create a button with a routelink to the Test Page
  5. go back --> Tabs are crashed

or checkout https://github.com/danielehrhardt/ionic4-tabs run

Expected Behavior navigate to a other page and go back

Additional Context


  "dependencies": {
    "@angular/common": "6.0.2",
    "@angular/core": "6.0.2",
    "@angular/forms": "6.0.2",
    "@angular/http": "6.0.2",
    "@angular/platform-browser": "6.0.2",
    "@angular/platform-browser-dynamic": "6.0.2",
    "@angular/router": "6.0.2",
    "@ionic-native/core": "5.0.0-beta.10",
    "@ionic-native/splash-screen": "5.0.0-beta.10",
    "@ionic-native/status-bar": "5.0.0-beta.10",
    "@ionic/angular": "4.0.0-alpha.7",
    "@ionic/schematics-angular": "latest",
    "core-js": "^2.5.3",
    "rxjs": "6.1.0",
    "zone.js": "^0.8.26"
  },
  "devDependencies": {
    "@angular/cli": "6.0.1",
    "@angular/compiler": "6.0.2",
    "@angular/compiler-cli": "6.0.2",
    "@angular/language-service": "6.0.2",
    "@angular-devkit/build-angular": "0.6.0",
    "@angular-devkit/core": "0.6.0",
    "@angular-devkit/schematics": "0.6.0",
    "@types/jasmine": "~2.8.6",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~10.1.0",
    "codelyzer": "~4.3.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~1.7.1",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~1.4.2",
    "karma-jasmine": "~1.1.1",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.3.0",
    "ts-node": "~6.0.2",
    "tslint": "~5.10.0",
    "typescript": "~2.7.2"
  }
IzioDev commented 6 years ago

could you say if .goRoot and .goBack reproduce the same issue?

danielehrhardt commented 6 years ago

Yes also with goRoot

gregor-srdic commented 6 years ago

any news on this? I believe I am encountering the same issue ...

omaxlive commented 6 years ago

same here. Any solution for this?

paulstelzer commented 5 years ago

Think this is fixed in beta.17. If not, just write here!

ionitron-bot[bot] commented 5 years ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.