neo-blessed icon indicating copy to clipboard operation
neo-blessed copied to clipboard

Dependencies error?

Open danikaze opened this issue 6 years ago • 1 comments

I'm having the following errors when building my app...

ERROR in ./node_modules/neo-blessed/vendor/tng.js
Module not found: Error: Can't resolve 'blessed/lib/colors' in '/Users/daniel.berlanga/dev/other/terminal-runner/node_modules/neo-blessed/vendor'
 @ ./node_modules/neo-blessed/vendor/tng.js 32:34-63
 @ ./node_modules/neo-blessed/lib/widgets/ansiimage.js
 @ ./node_modules/neo-blessed/lib/widgets sync ^\.\/.*$
 @ ./node_modules/neo-blessed/lib/widget.js
 @ ./node_modules/neo-blessed/lib/blessed.js
 @ ./src/ui/blessed/index.ts
 @ ./src/index.ts

ERROR in ./node_modules/neo-blessed/lib/widgets/terminal.js
Module not found: Error: Can't resolve 'pty.js' in '/Users/daniel.berlanga/dev/other/terminal-runner/node_modules/neo-blessed/lib/widgets'
 @ ./node_modules/neo-blessed/lib/widgets/terminal.js 218:13-30
 @ ./node_modules/neo-blessed/lib/widgets sync ^\.\/.*$
 @ ./node_modules/neo-blessed/lib/widget.js
 @ ./node_modules/neo-blessed/lib/blessed.js
 @ ./src/ui/blessed/index.ts
 @ ./src/index.ts

ERROR in ./node_modules/neo-blessed/lib/widgets/terminal.js
Module not found: Error: Can't resolve 'term.js' in '/Users/daniel.berlanga/dev/other/terminal-runner/node_modules/neo-blessed/lib/widgets'
 @ ./node_modules/neo-blessed/lib/widgets/terminal.js 93:14-32
 @ ./node_modules/neo-blessed/lib/widgets sync ^\.\/.*$
 @ ./node_modules/neo-blessed/lib/widget.js
 @ ./node_modules/neo-blessed/lib/blessed.js
 @ ./src/ui/blessed/index.ts
 @ ./src/index.ts

The code used is just this:

import * as blessed from 'neo-blessed';

const screen = blessed.screen();
screen.render();

The errors are happening in node 12.14.0 and 10.15.3

Any idea on how to get this running? I moved here from blessed but it looks like this one gives me more errors :-/

Just in case...

$ uname -a
Darwin P51258 17.7.0 Darwin Kernel Version 17.7.0: Thu Dec 20 21:47:19 PST 2018; root:xnu-4570.71.22~1/RELEASE_X86_64 x86_64

danikaze avatar Dec 25 '19 01:12 danikaze

By the way, in the end I just forked blessed too, and pushed some modifications to include the dependencies and node-pty, fixing the issue.

For those people interested in installing blessed without problems, check it out: https://github.com/danikaze/blessed

danikaze avatar Dec 25 '19 05:12 danikaze