This works flawless even with 6.3.1. I'm not an expert with nest modules, but looking at the source code of JwtModule, I suspect https://github.com/nestjs/jwt/blob/master/lib/jwt.module.ts#L26 is needed for this to work. A similiar imports entry is missing in I18nModule's declaration, so this might be the reason why above configuration is not working. Can you provide a fix or should I try create a PR?
Hi @ToonvanStrijp,
We are using the async module inititialization like this:
This worked well until we upgraded to version 6.3.1 (was 6.2.4). I suspect, https://github.com/nestjs/nest/issues/2341 boke something. We also use https://github.com/nestjs/jwt/ and initialize it in a very similiar way:
This works flawless even with 6.3.1. I'm not an expert with nest modules, but looking at the source code of
JwtModule
, I suspect https://github.com/nestjs/jwt/blob/master/lib/jwt.module.ts#L26 is needed for this to work. A similiarimports
entry is missing inI18nModule
's declaration, so this might be the reason why above configuration is not working. Can you provide a fix or should I try create a PR?