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.

TypeError: Cannot read property 'bold' of undefined => bgBlack?

See original GitHub issue

I swear bgBlack is available

but when I do this:

chalk.bgBlack.white.bold()

I get:

TypeError: Cannot read property 'bold' of undefined

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
LitoMorecommented, Sep 11, 2017

@ORESoftware Cannot read property 'bold' of undefined means that chalk.bgBlack.white is undefined, NOT chalk.bgBlack is undefined.

You need to swear chalk.bgBlack.white is available. 😃

0reactions
Qix-commented, Oct 10, 2022

Please open a new issue then with all relevant information. This is a 5 year old issue about a very old version of Chalk.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gherkin test using table fails with error "Cannot read property ...
As for the "bold of undefined" error it. I.say("InputName:" + name);. About the received variables I could see the test in fact receives...
Read more >
TypeError: Cannot read property 'bold' of undefined => bgBlack?
TypeError : Cannot read property 'bold' of undefined => bgBlack? ... I swear bgBlack is available. but when I do this: chalk.bgBlack.white.bold().
Read more >
CKEditor 4.2.2 - Cannot read property 'bold' of undefined
Cannot read property 'bold' of undefined. The error is triggerd on line: 11738 (Uncompressed) or 533 (Compressed) in the ckeditor.js file, ...
Read more >
Util | Node.js v18 API - Nodejs.dev
noDeprecation property is set to true prior to the first deprecation warning, ... TypeError: Cannot read property 'a' of undefined // naiveBar().then(a ...
Read more >
ERROR TypeError: Cannot read property title of undefined
HEY, SET YOUR LIKE THERE ! ... Your browser can't play this video. ... Solved: ERROR TypeError : Cannot read property title of...
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