Xterm.js: Unable to run demo

Created on 2 Apr 2018  路  4Comments  路  Source: xtermjs/xterm.js

Details

  • Browser and browser version: Chrome 61
  • OS version: 10.12.1
  • xterm.js version: latest

Steps to reproduce

  1. git clone https://github.com/xtermjs/xterm.js.git
  2. cd xterm.js
  3. npm i
  4. npm run watch
  5. In another terminal "npm start"

When I do this I get:

~/Downloads/node_modules/xterm/typings/xterm.d.ts(14,15): error TS2300: Duplicate identifier 'FontWeight'.
~/Downloads/node_modules/xterm/typings/xterm.d.ts(247,16): error TS2300: Duplicate identifier 'Terminal'.
~/Downloads/xterm.js-master/typings/xterm.d.ts(14,15): error TS2300: Duplicate identifier 'FontWeight'.
~/Downloads/xterm.js-master/typings/xterm.d.ts(254,16): error TS2300: Duplicate identifier 'Terminal'.

When I open the demo I get the black terminal screen with no text.
In Chrome developer tools I see:

Uncaught TypeError: Cannot read property 'length' of undefined
    at Parser.parse (xterm.js:2280)
    at Terminal._innerWrite (xterm.js:4090)
    at xterm.js:4075

Which is coming from:

    Parser.prototype.parse = function (data) {
        var l = data.length;
        var cs;
        var ch;

typbug

Most helpful comment

@circuitry2 should be fixed now

All 4 comments

I can repro, must have been caused by a recent push.

Caused by https://github.com/xtermjs/xterm.js/pull/1355, undefined is being written to the terminal.

Oh JavaScript, you so crazy:

screen shot 2018-04-02 at 8 13 42 am

FYI @AlexandrePetit-Pas @parisk

@circuitry2 should be fixed now

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pfitzseb picture pfitzseb  路  3Comments

zhangjie2012 picture zhangjie2012  路  3Comments

Tyriar picture Tyriar  路  4Comments

jestapinski picture jestapinski  路  3Comments

goxr3plus picture goxr3plus  路  3Comments