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

Crash on mac #11

Open
lionep opened this issue Jul 5, 2017 · 4 comments
Open

Crash on mac #11

lionep opened this issue Jul 5, 2017 · 4 comments
Labels

Comments

@lionep
Copy link

lionep commented Jul 5, 2017

Happens with node v6.9.1, directly on launch

TypeError: text.replace is not a function
    at Object.helpers.stripTags (/Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/helpers.js:137:6)
    at ScrollableBox.Element.strWidth (/Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/element.js:2543:15)
    at /Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/table.js:71:23
    at Array.forEach (native)
    at /Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/table.js:70:9
    at Array.forEach (native)
    at ScrollableBox.Table._calculateMaxes (/Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/table.js:69:13)
    at ScrollableBox.ListTable.render (/Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/listtable.js:171:8)
    at /Users/lionel/.nvm/versions/node/v6.9.4/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/element.js:2334:8
    at Array.forEach (native)
@Iliyass
Copy link

Iliyass commented Jul 5, 2017

I have issue here on

  • macOS 10.12.5
  • node v6.10.0
  • npm v3.10.10

@pipiliang pipiliang added the bug label Jul 11, 2017
@rvion
Copy link

rvion commented Jul 20, 2017

same here:

TypeError: text.replace is not a function
    at Object.helpers.stripTags (/usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/helpers.js:137:6)
    at ScrollableBox.Element.strWidth (/usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/element.js:2543:15)
    at /usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/table.js:71:23
    at Array.forEach (native)
    at /usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/table.js:70:9
    at Array.forEach (native)
    at ScrollableBox.Table._calculateMaxes (/usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/table.js:69:13)
    at ScrollableBox.ListTable.render (/usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/listtable.js:171:8)
    at /usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/widgets/element.js:2334:8
    at Array.forEach (native)

@nickelzhang
Copy link

/usr/local/lib/node_modules/docker-dashboard/node_modules/blessed/lib/helpers.js
:
136行
helpers.stripTags = function(text) {
text = text + "";
if (!text) return '';
return text
.replace(/{(/?)([\w-,;!#]*)}/g, '')
.replace(/\x1b[[\d;]*m/g, '');
};

@pipiliang
Copy link
Owner

Thanks for the feedback, please update to the latest version 0.1.6.

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

No branches or pull requests

5 participants