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.

TabHighlight - Uncaught TypeError: Cannot read property 'btn' of null

See original GitHub issue

Short description of the problem:

Error: Uncaught TypeError: Cannot read property 'btn' of null, http://192.168.1.12:8100/build/js/app.bundle.js, Line: 68645 is randomly happening and after this application becomes unstable.

What behavior are you expecting?

Error not to happen 😃

Steps to reproduce:

  1. Well not sure, I am opening screen with tabs and almost on every second opening this happens

Other information:

Part of code from app.bundle.js:

var TabHighlight = (function () {
    function TabHighlight(_elementRef) {
        this._elementRef = _elementRef;
    }
    TabHighlight.prototype.select = function (tab) {
        var _this = this;
        dom_1.rafFrames(3, function () {
            var d = tab.btn.getDimensions();               // this is line 68645
            var ele = _this._elementRef.nativeElement;
            ele.style.transform = 'translate3d(' + d.left + 'px,0,0) scaleX(' + d.width + ')';
            if (!_this._init) {
                _this._init = true;
                dom_1.rafFrames(6, function () {
                    ele.classList.add('animate');
                });
            }
        });
    };
    TabHighlight = __decorate([
        core_1.Directive({
            selector: 'tab-highlight'
        }), 
        __metadata('design:paramtypes', [core_1.ElementRef])
    ], TabHighlight);
    return TabHighlight;
}());
exports.TabHighlight = TabHighlight;

Which Ionic Version? 2.x

Run ionic info from terminal/cmd prompt:

Cordova CLI: 6.2.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.10 Ionic CLI Version: 2.0.0-beta.32 Ionic App Lib Version: 2.0.0-beta.18 OS: Distributor ID: LinuxMint Description: Linux Mint 17.3 Rosa Node Version: v5.12.0


Does anyone have any idea why is this happening? Thank you.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
youssmakcommented, Apr 26, 2017

never mind, thank you

0reactions
ionitron-bot[bot]commented, Sep 3, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: Cannot read property 'send' of null
Iam doing chatapplication using django. When i typed a message and click send iam getting this error, it is not sending. very thankful...
Read more >
Uncaught TypeError: Cannot read property 'results' of null
My column Jurisdiction is a multichoice column. My program is as below : for (var index = 0; index < ArrayRetrieved.Jurisdiction.
Read more >
Uncaught TypeError: Cannot read property of null - iDiallo
This will result in Uncaught TypeError: Cannot read property 'value' of null . The reason will be that the element with id input...
Read more >
Cannot read property 'GlideModal' of null
After copying the kb_knowledge Delete button and clicking on the copy, it does nothing and generates the error "Uncaught TypeError: Cannot read property...
Read more >
Cannot read property 'FrameRequestStart' of null
Uncaught TypeError : Cannot read property 'FrameRequestStart' of null ... After clicking the restart button document displays properly.
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