Skip to content

nx run-many fails with: Failed to convert JavaScript value Undefined into rust type String #32675

@jvskriubakken

Description

@jvskriubakken

Current Behavior

After nx is finished running build on each project, instead of presenting the summary it fails with the message:

NX   Failed to convert JavaScript value `Undefined` into rust type `String`

Pass --verbose to see the stacktrace.

Expected Behavior

That nx presents the summary

GitHub Repo

No response

Steps to Reproduce

Happens every time.

Nx Report

Node           : 24.6.0
OS             : darwin-arm64
Native Target  : aarch64-macos
pnpm           : 10.14.0

nx (global)        : 21.5.0
nx                 : 21.5.1
@nx/js             : 21.5.1
@nx/eslint         : 21.5.1
@nx/workspace      : 21.5.1
@nx/devkit         : 21.5.1
@nx/eslint-plugin  : 21.5.1
@nx/gradle         : 21.5.1
@nx/playwright     : 21.5.1
@nx/plugin         : 21.5.1
@nx/react          : 21.5.1
@nx/storybook      : 21.5.1
@nx/vite           : 21.5.1
@nx/web            : 21.5.1
typescript         : 5.9.2
---------------------------------------
Registered Plugins:
nx-tools-azure
nx-tools-chimney-insights
nx-tools-i18next
nx-tools-sentry
@nx/eslint/plugin
@nx-dotnet/core
@nx/storybook/plugin
@nx/vite/plugin
@nx/playwright/plugin
---------------------------------------
Community plugins:
@nx-dotnet/core : 3.0.2
---------------------------------------
Local workspace plugins:
nx-tools-chimney-insights
nx-tools-i18next
nx-tools-sentry
nx-tools-azure
---------------------------------------
Cache Usage: 198.89 KB / 92.64 GB

Failure Logs

nx run-many -t build --verbose

 NX   Failed to convert JavaScript value `Undefined` into rust type `String`

Error: Failed to convert JavaScript value `Undefined` into rust type `String`
    at CompositeLifeCycle.appendTaskOutput (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/life-cycle.js:87:19)
    at CompositeLifeCycle.appendTaskOutput (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/life-cycle.js:87:19)
    at CompositeLifeCycle.appendTaskOutput (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/life-cycle.js:87:19)
    at /Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/task-orchestrator.js:411:48
    at NoopChildProcess.onOutput (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/running-tasks/noop-child-process.js:19:9)
    at TaskOrchestrator.runTask (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/task-orchestrator.js:410:33)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async TaskOrchestrator.applyFromCacheOrRunTask (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/task-orchestrator.js:291:34)
    at async TaskOrchestrator.executeNextBatchOfTasksUsingTaskSchedule (/Users/jvs/Code/Firefly3/node_modules/.pnpm/nx@21.5.1_@swc-node+register@1.9.2_@swc+core@1.5.7_@swc+helpers@0.5.17__@swc+types@0.1._d6493b8718eaaded17f5ce0ac19c4f98/node_modules/nx/src/tasks-runner/task-orchestrator.js:130:17)
    at async Promise.all (index 1)

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions