TypeError: Cannot read property '_data' of undefined
See original GitHub issueWhile resizing the terminal smaller, the following exception occurs. It’s not clear exactly how to reproduce. I cat the content of a file and then resize the terminal to a small size:
Uncaught TypeError: Cannot read property '_data' of undefined
at BufferLine.copyCellsFrom (xterm.js:887)
at Buffer._reflowSmaller (xterm.js:468)
at Buffer._reflow (xterm.js:388)
at Buffer.resize (xterm.js:370)
at BufferSet.resize (xterm.js:1140)
at Terminal.resize (xterm.js:5078)
at Terminal.resize (xterm.js:6615)
at resize (kubebox.js:1351)
at Item.run (kubebox.js:52341)
at drainQueue (kubebox.js:52311)
Details
- Browser and browser version: Chrome 69
- OS version: Mac OS X
- xterm.js version: 3.11.0
Steps to reproduce
- Resize the terminal smaller
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:18 (10 by maintainers)
Top Results From Across the Web
angularjs - typeerror cannot read property 'data' of undefined
This error comes because there is no property of name data in your class. $scope.gridOptions. this class ...
Read more >TypeError: Cannot read property 'data' of undefined
catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/ ...
Read more >Cannot read property 'data' of undefined
Cannot read property 'data' of undefined TypeError: Cannot read property 'data' of undefined at http://jira.
Read more >Cannot read property 'data' of undefined in React web
Like Nuno said, it means that the JavaScript running on the device / browser is acting on invalid elements. In another words, this...
Read more >How to Prevent the TypeError: Cannot Read Property Map of ...
As a result, the TypeError Cannot read property 'map' of undefined is very common and one of the first errors that developers will...
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 FreeTop 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
Top GitHub Comments
I released 3.12.1 that includes just this fix https://github.com/xtermjs/xterm.js/releases/tag/3.12.1, beta for 3.13.0 coming soon so
I confirm #2002 fixes the issue.