Skip to content

this.taskHistory.getEstimatedTaskTimings is not a function #29184

Closed
@lidianhao123

Description

@lidianhao123

Current Behavior

run command

yarn lerna run build --verbose

Expected Behavior

command run correct

GitHub Repo

No response

Steps to Reproduce

Nx Report

Node           : 18.20.3
OS             : darwin-arm64
Native Target  : aarch64-macos
yarn           : 1.22.21

nx          : 19.8.14
lerna       : 8.1.8
@nx/devkit  : 19.8.14
@nrwl/tao   : 19.8.14
typescript  : 5.7.2

Failure Logs

 Lerna (powered by Nx)   this.taskHistory.getEstimatedTaskTimings is not a function

TypeError: this.taskHistory.getEstimatedTaskTimings is not a function
    at TaskHistory.getEstimatedTaskTimings (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/utils/task-history.js:20:37)
    at TasksSchedule.init (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/tasks-schedule.js:28:40)
    at TaskOrchestrator.run (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/task-orchestrator.js:48:32)
    at runAllTasks (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/default-tasks-runner.js:60:25)
    at defaultTasksRunner (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/default-tasks-runner.js:51:22)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async invokeTasksRunner (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/run-command.js:441:5)
    at async runCommandForTasks (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/run-command.js:117:25)
    at async /Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/tasks-runner/run-command.js:105:29
    at async handleErrors (/Users/lidian19/code/airp-platform-fe/magicbox-render/node_modules/nx/src/utils/handle-errors.js:9:24)

error Command failed with exit code 1.

Package Manager Version

No response

Operating System

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

Additional Information

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions