diff --git a/lib/compiler/defaults/webpack-defaults.ts b/lib/compiler/defaults/webpack-defaults.ts index a59aefdb7..b78b130a7 100644 --- a/lib/compiler/defaults/webpack-defaults.ts +++ b/lib/compiler/defaults/webpack-defaults.ts @@ -70,7 +70,8 @@ export const webpackDefaultsFactory = ( checkResource(resource: any) { const lazyImports = [ '@nestjs/microservices', - 'cache-manager', + '@nestjs/microservices/microservices-module', + '@nestjs/websockets/socket-module', 'class-validator', 'class-transformer', ];