#Typescript error using NestExpressApplication or NestFastifyApplication

3 messages · Page 1 of 1 (latest)

surreal kiln
#

I just installed a new nestjs v11.0.1 app and I got this error on my main.ts

Type 'NestExpressApplication<Server<typeof IncomingMessage, typeof ServerResponse>>' does not satisfy the constraint 'INestApplication<any>'.
  Types of property 'enableVersioning' are incompatible.
...

It's the same with NestFastifyApplication.

The app is building and works correctly but it's annoying having a file in error.

light sphinx
#

Check if @nestjs/core and @nestjs/platform-express (together with other core @nestjs/* packages) are on the same version

surreal kiln