Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies error? #35

Open
danikaze opened this issue Dec 25, 2019 · 1 comment
Open

Dependencies error? #35

danikaze opened this issue Dec 25, 2019 · 1 comment

Comments

@danikaze
Copy link

danikaze commented Dec 25, 2019

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant