Description
Seems like the nestjs-dataloader is outdated, it's not compatible with nest latest version. After updated to nest latest version I am getting an error.
below are the version details
Node version => v14.16.0
NPM version => 6.14.11
@nestjs/common = > 7.6.17
@nestjs/core => 7.6.17
@nestjs/graphql => 7.10.6
@nestjs/microservices => 7.6.17
@nestjs/platform-express => 7.6.17
nestjs-dataloader => 7.0.1
error details
Property 'intercept' in type 'DataLoaderInterceptor' is not assignable to the same property in base type 'NestInterceptor<any, any>'.
Type '(context: ExecutionContext, next: CallHandler<any>) => Observable<any>' is not assignable to type '(context: ExecutionContext, next: CallHandler<any>) => Observable<any> | Promise<Observable<any>>'.
Type 'Observable<any>' is not assignable to type 'Observable<any> | Promise<Observable<any>>'.
Property '_deprecatedSyncErrorSubscribe' is missing in type
'import("/Users/mac/Desktop/Projects/NodeJs/rubix/retail/middleware/videocall.service/node_modules/nestjs-dataloader/node_modules/rxjs/internal/Observable").Observable<any>' but required in type
'import("/Users/mac/Desktop/Projects/NodeJs/rubix/retail/middleware/videocall.service/node_modules/rxjs/dist/types/internal/Observable").Observable<any>'.
intercept(context: ExecutionContext, next: CallHandler): Observable<any> {
private _deprecatedSyncErrorSubscribe;
'_deprecatedSyncErrorSubscribe' is declared here.
Type 'Observable<any>' is missing the following properties from type 'Observable<any>': _isScalar, _trySubscribe, _subscribe
return next.handle();