简体   繁体   中英

nx build command failed with TypeError: Cannot read properties of undefined (reading 'cloud')

I am trying to run nx build it was working fine, but now it stopped working. below are the logs

/vercel/path0/node_modules/@nrwl/nx-cloud/lib/nx-cloud-tasks-runner.js:20
    const noCloud = nxArgs['cloud'] === false;
                          ^

TypeError: Cannot read properties of undefined (reading 'cloud')
    at nxCloudTasksRunner (/vercel/path0/node_modules/@nrwl/nx-cloud/lib/nx-cloud-tasks-runner.js:20:27)
    at /vercel/path0/node_modules/@nrwl/workspace/src/tasks-runner/run-command.js:85:37
    at Generator.next (<anonymous>)
    at fulfilled (/vercel/path0/node_modules/@nrwl/workspace/node_modules/tslib/tslib.js:115:62)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

The error seems to be happening with @nrwl/nx-cloud@latest . Try downgrading @nrwl/nx-cloud. For me version 13.1.6 works good.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM