import { NestFactory } from '@nestjs/core';
import {
FastifyAdapter,
NestFastifyApplication,
} from '@nestjs/platform-fastify';
import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>(
AppModule,
new FastifyAdapter(),
);
await app.listen(3000);
}
bootstrap();
I got a type error:
Type 'NestFastifyApplication<RawServerDefault>' does not satisfy the constraint 'INestApplication'.
Type 'NestFastifyApplication<RawServerDefault>' is missing the following properties from type 'INestApplication': use, enableCors, enableVersioning, getUrl, and 19 more
Is there an existing issue for this?
Current behavior
I got a type error:
Minimum reproduction code
https://github.com/nestjs/nest/issues/new?assignees=&labels=needs+triage&projects=&template=Bug_report.yml
Steps to reproduce
No response
Expected behavior
Resolve the typescript error
Package
Other package
No response
NestJS version
No response
Packages versions
Node.js version
No response
In which operating systems have you tested?
Other
No response