diff --git a/content/recipes/swc.md b/content/recipes/swc.md index 445d5de579..e8e8e1cda8 100644 --- a/content/recipes/swc.md +++ b/content/recipes/swc.md @@ -135,14 +135,14 @@ declare a `generate-metadata.ts` file near the `main.ts` file with the following ```ts import { PluginMetadataGenerator } from '@nestjs/cli/lib/compiler/plugins'; -import { ReadonlyVisitor } from '@nestjs/swagger'; +import { ReadonlyVisitor } from '@nestjs/swagger/dist/plugin'; const generator = new PluginMetadataGenerator(); generator.generate({ visitors: [new ReadonlyVisitor({ introspectComments: true, pathToSource: __dirname })], outputDir: __dirname, watch: true, - tsconfigPath: 'tsconfig.build.json', + tsconfigPath: 'apps//tsconfig.app.json', }); ```