Nestjs 神秘的“The”;“模块”;@Module()装饰器中的键已弃用`

Nestjs 神秘的“The”;“模块”;@Module()装饰器中的键已弃用`,nestjs,Nestjs,运行nestjs应用程序和控制台显示: WARNING!! The "modules" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "imports" key instead. 我的模块声明如下: @Module({ imports: [UserModule], providers: [AuthService, JwtSt

运行nestjs应用程序和控制台显示:

WARNING!!
The "modules" key in the @Module() decorator is deprecated and will be removed within next major release. Use the "imports" key instead. 
我的模块声明如下:

@Module({
    imports: [UserModule],
    providers: [AuthService, JwtStrategy],
    controllers: [AuthController]
})
export class AuthModule {}
我还对单词
modules
执行了“在路径中查找”,以确保我的代码中没有
modules


有什么想法吗?

我对旧版本的NestJs有这个问题。升级package.json有帮助。 确保所有@nestjs/*软件包都使用最新版本^5.0.0