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

Sloc error with newest docker-node container #130

Open
konfuzzyus-ger opened this issue Nov 22, 2021 · 0 comments
Open

Sloc error with newest docker-node container #130

konfuzzyus-ger opened this issue Nov 22, 2021 · 0 comments

Comments

@konfuzzyus-ger
Copy link

After a docker node update sloc seems to have the following problem:

$ sloc --details --format cli-table --keys total,source,comment js/*.js
/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/utils.js:85
  var split = stripped.split("\n");
                       ^
TypeError: stripped.split is not a function
    at Object.exports.strlen (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/utils.js:85:24)
    at get_width (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:138:70)
    at /usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:131:68
    at Array.forEach (<anonymous>)
    at extractColumnWidths (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:130:9)
    at /usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:104:11
    at Array.forEach (<anonymous>)
    at Table.toString (/usr/local/lib/node_modules/sloc/node_modules/cli-table/lib/index.js:101:16)
    at module.exports (/usr/local/lib/node_modules/sloc/lib/formatters/cli-table.js:56:18)
    at print (/usr/local/lib/node_modules/sloc/lib/cli.js:95:11)
Node.js v17.0.1
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