Nestjs 神秘的“The”;“模块”;@Module()装饰器中的键已弃用`
运行nestjs应用程序和控制台显示: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
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