question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
sbacarobcommented, Jul 31, 2018

@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.

0reactions
klaudiosinanicommented, Sep 1, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating task throws error `type.badge.padEnd is not a function ...
Describe the bug Trying to test out Taskbook, in running the following command tb -t @work test taskbook I get the following error: ......
Read more >
TypeError: padStart is not a function in JavaScript | bobbyhadz
The "padStart is not a function" error occurs when we call the `padStart()` method on a value that is not a string. To...
Read more >
TypeError: string.padStart is not a function - Stack Overflow
I tried updating all the node dependencies, deleted and pulled the working code and still getting the same error. Downloaded a different ID...
Read more >
Implement Best Practices for JavaScript Actions - Mendix Docs
This set of best practices will help you get the most out of your JavaScript actions.
Read more >
Uncaught TypeError | Is Not A Function | Solution - YouTube
Have you encountered an error like:- Uncaught TypeError- Some selector is not a function - jQuery is not a function - owlCarousel is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found