Creating task throws error `type.badge.padEnd is not a function`
See original GitHub issueDescribe 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
- install taskbook via
npm install -g taskbook
- 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:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
Fixed on https://github.com/klauscfhq/signale/pull/53.