nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.69k stars 7.63k forks source link

Error: Class 'NestApplication' incorrectly implements interface 'INestApplication'. #79

Closed jakub-gawlas closed 7 years ago

jakub-gawlas commented 7 years ago

Hi 😄

I updated my application to using nest v2.1.0, unfortunately compilation failing with error:

node_modules/@nestjs/core/nest-application.d.ts(4,22): error TS2420: Class 'NestApplication' incorrectly implements interface 'INestApplication'.
  Types of property 'connectMicroservice' are incompatible.
    Type '(config: MicroserviceConfiguration) => void' is not assignable to type '(config: MicroserviceConfiguration) => INestMicroservice'.
      Type 'void' is not assignable to type 'INestMicroservice'.

node_modules/@nestjs/core/nest-microservice.d.ts(4,22): error TS2420: Class 'NestMicroservice' incorrectly implements interface 'INestMicroservice'.
  Property 'close' is missing in type 'NestMicroservice'.

I tried compile example repo https://github.com/kamilmysliwiec/nest-typescript-starter with the same result.

How works for you?

Cheers 🥂

artaommahe commented 7 years ago

looks like it's same with https://github.com/kamilmysliwiec/nest/issues/52#issuecomment-303480941. There is an incomplete lib version in npm without some code

kamilmysliwiec commented 7 years ago

Hi guys! Please, update your @nestjs/core into 2.1.1.

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.