【问题标题】:NestJS: Cannot read property "'createObjectLiteralExpression'" of undefinedNestJS:无法读取未定义的属性“'createObjectLiteralExpression'”
【发布时间】:2021-10-12 06:49:17
【问题描述】:

升级到 NestJS 8 后,我在运行 npm run start:dev 时得到了这个

Error Cannot read property "'createObjectLiteralExpression'" of undefined

知道出了什么问题吗?

[System Information]
OS Version     : Linux 5.4
NodeJS Version : v12.19.0
NPM Version    : 6.14.8 

[Nest CLI]
Nest CLI Version : 8.1.1 

[Nest Platform Information]
platform-socket.io version : 8.0.6
platform-express version   : 8.0.6
microservices version      : 8.0.6
websockets version         : 8.0.6
schematics version         : 8.0.2
passport version           : 8.0.1
schedule version           : 1.0.1
swagger version            : 5.0.9
typeorm version            : 8.0.2
testing version            : 8.0.6
common version             : 8.0.6
config version             : 1.0.1
core version               : 8.0.6
jwt version                : 8.0.0
cli version                : 8.1.1

【问题讨论】:

    标签: nestjs


    【解决方案1】:

    我自己发现了问题。花了我几个小时。 TypeScript需要升级到v4+。

    这是 v4+ 功能。尽管我仔细阅读了NestJS V8 blog,但还是错过了。

    【讨论】:

      猜你喜欢
      • 2021-02-27
      • 2021-10-30
      • 2020-06-26
      • 2021-07-23
      • 2021-05-03
      • 2019-07-27
      • 2021-05-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多