NestJS:无法读取未定义的属性“'createObjectLiteralExpression'”

Hao*_*Hao 3 nestjs

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

Error Cannot read property "'createObjectLiteralExpression'" of undefined
Run Code Online (Sandbox Code Playgroud)

知道出了什么问题吗?

[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
Run Code Online (Sandbox Code Playgroud)

Hao*_*Hao 8

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

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