You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

执行NestJS生成employees资源命令失败,寻求技术帮助

NestJS生成资源时触发Cannot read properties of undefined (reading 'text')错误

操作流程

  • 执行脚手架命令:nest g resource employees
  • 交互选项选择:
    • 传输层:REST API
    • 生成CRUD入口:Yes
  • 执行后报错:Error: Cannot read properties of undefined (reading 'text')

实际执行的完整命令

node @nestjs/schematics:resource --name=employees --no-dry-run --no-skip-import --language="ts" --source-root="src" --spec --no-flat --spec-file-suffix="spec"

相关截图

nest-cli.json配置与终端错误信息截图

已尝试多种方法仍无法解决,恳请技术人士提供协助。

内容的提问来源于stack exchange,提问作者Luiz Fernando R. Mecias

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.20 16:57:02