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.

Unable to run demo

See original GitHub issue

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;

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Tyriarcommented, Apr 2, 2018

@circuitry2 should be fixed now

0reactions
Tyriarcommented, Jun 17, 2022

Try deleting out/out-test and running yarn watch

Read more comments on GitHub >

github_iconTop Results From Across the Web

ant - Unable to run the demo setup - Stack Overflow
I typed tomcat.install and it solved the problem since I need to download the tomcat inside the apps directory. Share. Share ...
Read more >
Unable to run demo: Key error "data" · Issue #89 - GitHub
I'm trying to run the data lineage wikimedia demo but I'm running into an error: Traceback (most recent call last):
Read more >
EndNote Windows: Unable to activate the demo
To run EndNote as an administrator, open a Computer window and go to "C:\Program Files\EndNote XX or C:\Program Files (X86)\EndNote XX." Right click...
Read more >
can't run demo applications: error in opening zip file - IBM
Hello,. I've installed BigInsights Enterprise 1.4 as a single node installation on my machine (CentOS 6.3, 64 bit), but can't run demo applications....
Read more >
Unable to run demo "voiceCapture" on Psychopy 3.2.3 - Builder
I have been able to reproduce the same behavior and same error message on a fresh install of 3.2.2 on different (desktop) Mac...
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