debugging - nx 构建命令失败,类型错误 : Cannot read properties of undefined (reading 'cloud' )

标签 debugging next.js monorepo nrwl-nx

我正在尝试运行 nx build 它工作正常,但现在它停止工作了。 下面是日志

/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)

最佳答案

错误似乎发生在 @nrwl/nx-cloud@latest 上。尝试降级@nrwl/nx-cloud。对我来说,版本 13.1.6 运行良好。

关于debugging - nx 构建命令失败,类型错误 : Cannot read properties of undefined (reading 'cloud' ),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73783973/

相关文章:

javascript - 你能撤消 lerna bootstrap 吗?

html - 如何阻止占位符转换回来? (CSS)

debugging - 如何将Visual Studio 2015调试器附加到以前部署的asp.net核心Docker容器

reactjs - fsevents@2.3.2 安装问题的平台不受支持

javascript - 如何在 Nextjs 中处理创建/编辑页面,我应该在 ServerSideProps 中还是在组件中获取产品

node.js - 将对等依赖项与本地依赖项(文件 :. ./some-lib)一起使用

node.js - 是否可以调试当前正在运行的生产 Node 应用程序?

debugging - 如何调试无法启动的 erlang 应用程序

javascript - Next.js 12 与 theme-ui 一起使用时会中断,给出 "code: ' ERR_REQUIRE_ESM'"

javascript - 使用 TFS CI 发布多个 cobertura 覆盖范围