Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

[Debian Buster] pkg/prelude/bootstrap.js:1178 failing #29

Closed
benedikt-haug opened this issue Aug 15, 2019 · 3 comments
Closed

[Debian Buster] pkg/prelude/bootstrap.js:1178 failing #29

benedikt-haug opened this issue Aug 15, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@benedikt-haug
Copy link

benedikt-haug commented Aug 15, 2019

When running perf-top-1.0.0.0-LINUX on my debian buster installation I receive this error:

❯ ~/bin/perf-top-linux --dashboard ClusterOverview --endpoint testnode-qa001.server.lan:9600
pkg/prelude/bootstrap.js:1178
      throw error;
      ^

Error: File '/**/estop-release/node_modules/blessed/usr/xterm' was not included into executable at compilation stage. Please recompile adding it as asset or script.
    at error_ENOENT (pkg/prelude/bootstrap.js:422:17)
    at readFileFromSnapshot (pkg/prelude/bootstrap.js:650:29)
    at Object.fs.readFileSync (pkg/prelude/bootstrap.js:693:18)
    at Tput.readTerminfo (/snapshot/estop-release/node_modules/blessed/lib/tput.js:149:13)
    at Tput.compileTerminfo (/snapshot/estop-release/node_modules/blessed/lib/tput.js:616:28)
    at Tput.injectTerminfo (/snapshot/estop-release/node_modules/blessed/lib/tput.js:620:27)
    at Tput._useXtermInfo (/snapshot/estop-release/node_modules/blessed/lib/tput.js:111:15)
    at Tput.setup (/snapshot/estop-release/node_modules/blessed/lib/tput.js:85:10)
    at new Tput (/snapshot/estop-release/node_modules/blessed/lib/tput.js:60:10)
    at Program.setupTput (/snapshot/estop-release/node_modules/blessed/lib/program.js:210:26)

xterm exists but it is somewhere else:

❯ which xterm
/usr/bin/xterm

I have no experience debugging node.js so that's all I can give you.

@Hubbitus
Copy link

Please see #36
I can reproduce it also on version perf-top-1.4.0.0-LINUX

@nickgal
Copy link

nickgal commented Apr 28, 2020

I ran into this problem with Ubuntu 20.04 and perf-top-1.6.0.0-LINUX.zip.

After a little digging I was able to able to find a couple possible solutions:

  • Setting the TERM env var to xterm (ex. TERM=xterm ./perf-top-linux) which matches the env var from the amazon/opendistro-for-elasticsearch docker image. Ubuntu seemed to default it to xterm-256color.
  • Adding the files from blessed as a pkg asset by adding the following line to package.json as mentioned Unable to package a project which includes blessed vercel/pkg#530 (comment)
    "pkg": { "assets": "node_modules/blessed/**/*" }

@ricardolstephen
Copy link
Contributor

This issue has been resolved by #54.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants