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

Creating task throws error type.badge.padEnd is not a function #1

Closed
jusopi opened this issue Jul 31, 2018 · 5 comments
Closed

Creating task throws error type.badge.padEnd is not a function #1

jusopi opened this issue Jul 31, 2018 · 5 comments
Labels
bug Something isn't working

Comments

@jusopi
Copy link

jusopi commented Jul 31, 2018

Describe the bug
Trying to test out Taskbook, in running the following command tb -t @work test taskbook I get the following error:

taskbook/node_modules/signale/signale.js:198
      signale.push(chalk[type.color](type.badge.padEnd(type.badge.length + 1)));
                                                ^

TypeError: type.badge.padEnd is not a function
    at Signale._buildSignale (/Users/jusopi/.brews/nvm/versions/node/v6.11.0/lib/node_modules/taskbook/node_modules/signale/signale.js:198:49)
    at Signale._logger (/Users/jusopi/.brews/nvm/versions/node/v6.11.0/lib/node_modules/taskbook/node_modules/signale/signale.js:257:20)
    at Render.successCreate (/Users/jusopi/.brews/nvm/versions/node/v6.11.0/lib/node_modules/taskbook/lib/render.js:248:5)
    at Taskbook.createTask (/Users/jusopi/.brews/nvm/versions/node/v6.11.0/lib/node_modules/taskbook/lib/taskbook.js:325:12)
    at taskbookCLI (/Users/jusopi/.brews/nvm/versions/node/v6.11.0/lib/node_modules/taskbook/index.js:11:21)
    at Object.<anonymous> (/Users/jusopi/.brews/nvm/versions/node/v6.11.0/lib/node_modules/taskbook/cli.js:68:1)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)

To Reproduce

  1. install taskbook via npm install -g taskbook
  2. create new task tb -t @work test taskbook

Technical Info (please complete the following information)

  • OS: Mac OS 10.13.6
  • Node.js Version:
    • node: v6.11.0
    • npm: 3.10.10
  • Taskbook Version: 0.1.1
@sbacarob
Copy link

@jusopi I got the exact same problem as you. The problem actually comes from Signale, and as pointed out on this issue, it is a clientside problem which for now can be solved by updating your Nodejs version to the latest.

I updated mine and it did get fixed.

@jusopi
Copy link
Author

jusopi commented Jul 31, 2018

I updated to Node 8.11.3 and it is no longer an issue. Thank you.

@Mor-Walkme
Copy link

Works Thanks. i would suggest to add it as a requirement to the readme file.

@rjoydip-zz
Copy link

Notes added in documentation 80db5e7

@klaudiosinani
Copy link
Owner

Fixed on klaudiosinani/signale#53.

@klaudiosinani klaudiosinani added the bug Something isn't working label Sep 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants