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.

AppVeyor (Windows) throws `Cannot read property 'toLowerCase' of undefined`

See original GitHub issue

Via a chalk 2.0.0 pull request I’m seeing ~300 instances of the following error for stylelint on our Windows AppVeyor builds:

 FAIL  lib\rules\selector-max-empty-lines\__tests__\index.js
  ● Test suite failed to run
    TypeError: Cannot read property 'toLowerCase' of undefined
      
      at Object.<anonymous> (node_modules/chalk/index.js:8:78)
      at Object.<anonymous> (lib/formatters/stringFormatter.js:5:15)
      at Object.<anonymous> (lib/formatters/index.js:5:11)
 FAIL  lib\rules\selector-no-qualifying-type\__tests__\index.js

• chalk ref: https://github.com/chalk/chalk/blob/master/index.js#L8 • stylelint AppVeyor build: https://ci.appveyor.com/project/stylelint/stylelint/build/4476 • stylelint pull request / issue: https://github.com/stylelint/stylelint/pull/2695

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ntwbcommented, Jun 30, 2017

Woot, works for me, thanks for the speedy turn around chalk’rs, appreciated 😄

Here’s the latest AppVeyor build using chalk 2.0.1:

https://ci.appveyor.com/project/stylelint/stylelint/build/4477

1reaction
1mike12commented, Jun 30, 2017

samesies. Just happened to me. Windows 10 in powershell. Wanted to use that sweet chalk.keyword() 😦

I’ll go back to chalk 1.1.3

EDIT Found some related info in another project https://github.com/cronvel/terminal-kit/issues/12

if I set isSimpleWindowsTerm true or false, it seems to work perfectly fine, thought I am not getting the correct colors if I try rgb for instance. It seems to be matching a color that is close enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular - ng build message "ERROR in Cannot read property ...
The above goes through the Angular build and at the end returns the message "ERROR in Cannot read property 'toLowerCase' of undefined".
Read more >
TFS Cannot read property 'toLowerCase' of undefined
Hi,. Actually , we need to notificate via Email to any work items assigned, but not working, anyone know if there're errors or...
Read more >
Viewing online file analysis results for 'sfdx-windows-amd64.exe'
sfdx-windows-amd64.exe. This report is generated from a file or URL submitted to this webservice on November 28th 2019 11:52:49 (UTC)
Read more >
Manual | Sequelize - ESDoc Hosting Service
Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction support, relations, ...
Read more >
licenses.txt - vPOP Pro
notStrictEqual * assert.throws * assert. ... [![Windows Build status](https://img.shields.io/appveyor/ci/paulmillr/chokidar/master.svg?label=Windows)](https ...
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