Skip to content

Error in 9.2.1 when prefix colors have spaces #580

@ReedSoftware

Description

@ReedSoftware

Describe the bug

  • Description: Updating from 9.2.0 to 9.2.1 causes an error like so:
> ./node_modules/.bin/concurrently -k -n "test-app-1, other-app-2" -c "yellow.bold, cyan.bold" "echo 1" "echo 2"

/home/runner/work/my-project/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js:13
            throw err;
            ^

TypeError: Cannot read properties of undefined (reading 'bold')
    at <snip>/node_modules/concurrently/dist/src/logger.js:50:36
    at Array.reduce (<anonymous>)
    at getChalkPath (<snip>/node_modules/concurrently/dist/src/logger.js:50:10)
    at Logger.colorText (<snip>/node_modules/concurrently/dist/src/logger.js:144:21)
    at Logger.logCommandText (<snip>/node_modules/concurrently/dist/src/logger.js:170:29)
  • Expected Behavior: concurrently to run both programs successfully
  • Environment: Occurs both in GHA running ubuntu-latest and in macos 26.1 -- concurrently 9.2.1 -- nodejs 24.x
  • Reproduction: ./node_modules/.bin/concurrently -k -n "test-app-1, other-app-2" -c "yellow.bold, cyan.bold" "echo 1" "echo 2"

If I run npm i -D concurrently@9.2.0 then rerun this exact same command, it immediately works again.

Looks like the changes here v9.2.0...v9.2.1#diff-7bc1140e724e284ae22084e1172568baa8d151063d02c75ed1d8805fa7796acaR12 in src/logger.ts are to blame?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions