kenan238 / reblessed

A high-level terminal interface library for node.js.
MIT License
87 stars 10 forks source link

[Bug] TypeError: widget.aliases is not iterable #4

Closed KaKi87 closed 2 years ago

KaKi87 commented 2 years ago

Example

require('reblessed')

Steps

Run

Expected outcome

Stops without error

Actual outcome

node_modules/reblessed/lib/widget.js:56
for (var key of widget.aliases) {
                       ^

TypeError: widget.aliases is not iterable
    at Object.<anonymous> (node_modules/reblessed/lib/widget.js:56:24)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (node_modules/reblessed/lib/reblessed.js:17:18)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

Additional info

Running with blessed instead of reblessed works.


Thanks

kenan238 commented 2 years ago

image