From 6521bb0727d288bf09669e8e3268456fc4c30a7f Mon Sep 17 00:00:00 2001 From: Gian Lazzarini Date: Thu, 23 Oct 2025 22:07:53 -0700 Subject: [PATCH] Import '@fastify/view' for Fastify reply type augmentation Added import statement for '@fastify/view' to enhance Fastify reply type with view property to avoid the type error below: Property 'view' does not exist on type 'FastifyReply, unknown, FastifySchema, FastifyTypeProviderDefault, unknown>'.ts(2339) --- content/techniques/mvc.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/techniques/mvc.md b/content/techniques/mvc.md index e2d88e717d..21e58bb814 100644 --- a/content/techniques/mvc.md +++ b/content/techniques/mvc.md @@ -164,6 +164,7 @@ import { NestFactory } from '@nestjs/core'; import { FastifyAdapter } from '@nestjs/platform-fastify'; import { AppModule } from './app.module'; import { join } from 'path'; +import '@fastify/view'; // Needs to be imported to augment the fastify reply type with the view property async function bootstrap() { const app = await NestFactory.create(AppModule, new FastifyAdapter());