TabHighlight - Uncaught TypeError: Cannot read property 'btn' of null
See original GitHub issueShort 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:
- 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:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
never mind, thank you
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.