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.

[v2 beta.11] LoadingController broken with Tabs on default Tab

See original GitHub issue

Something broke between 2.0.0-beta.10-201608041720 and 2.0.0-beta.10-201608051404 on the updated LoadingController component.

Steps to reproduce:

  1. Set a tabs page as root
  2. Add a Loading component to the default selected tab
  3. Run loading.present()

I’m running into this error: EXCEPTION: Error: Uncaught (in promise): TypeError: activeNav.getActive is not a function. Running through the trace, it looks like Loading can’t figure out the current view. Note that this does not happen with 2.0.0-beta.10-201608041720 the previous version.

Cordova CLI: 6.3.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10-201608051404
Ionic CLI Version: 2.0.0-beta.36
Ionic App Lib Version: 2.0.0-beta.19
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v6.2.0
Xcode version: Xcode 7.3.1 Build version 7D1014

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:23 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
eddyng8commented, Sep 8, 2016

I had the same issue with beta 11. And this is my workaround:

let loading = this.loadingCtrl.create({ content: 'Please wait...' }); try { loading.present(); } catch (e) { }

I even put the above code in my service class. It won’t launch the loading panel when you fire up your app. But it will as soon as everything settles in.

3reactions
ChezRDcommented, Aug 15, 2016

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ionic Tabs - Controller of first tab component firing twice
Hello guys. I have a component which has tabs. The default tab's controller sometimes fires twice, depending from where it is called.
Read more >
How to Build an Ionic 4 File Explorer
To do so, we can simply create another routing entry which also uses the default page, but with a different path that will...
Read more >
Category Command Reference - FlexSim
This command will return the index corresponding to the objects default shape. Example. objectshapecode(so()). objecttexcode (obj object). Deprecated, ...
Read more >
Changelog - IE Tab - Run Internet Explorer inside Chrome
Fix a sizing problem when the default Chrome debugger tools are visible. Version 14.4.13.1. Changes: Fix missing copyright information; Sign binary with new ......
Read more >
5.6 UniFi Controller Consolidated Change Log
Added warnings count in device status badge. Merged Users and Guests tabs in property panel. Fix default 5G channel width. Fixing load page...
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