Code Monkey home page Code Monkey logo

Comments (4)

yrong avatar yrong commented on May 23, 2024 1

after execute yarn start

./src/notadd/node_modules/ts-node/src/index.ts:240
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/common/interceptors/errors.interceptor.ts:7:5 - error TS2416: Property 'intercept' in type 'ErrorsInterceptor' is not assignable to the same property in base type 'NestInterceptor<any, any>'.
  Type '(context: ExecutionContext, calls$: Observable<any>) => Observable<any>' is not assignable to type '(context: ExecutionContext, next: CallHandler<any>) => Observable<any> | Promise<Observable<any>>'.
    Types of parameters 'calls$' and 'next' are incompatible.
      Type 'CallHandler<any>' is missing the following properties from type 'Observable<any>': _isScalar, source, operator, lift, and 6 more.
7     intercept(context: ExecutionContext, calls$: Observable<any>): Observable<any> {
      ~~~~~~~~~

    at createTSError (/Users/starit/src/notadd/node_modules/ts-node/src/index.ts:240:12)
    at reportTSError (/Users/starit/src/notadd/node_modules/ts-node/src/index.ts:244:19)
    at getOutput (/Users/starit/src/notadd/node_modules/ts-node/src/index.ts:360:34)
    at Object.compile (/Users/starit/src/notadd/node_modules/ts-node/src/index.ts:393:11)
    at Module.m._compile (/Users/starit/src/notadd/node_modules/ts-node/src/index.ts:439:43)
    at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/Users/starit/src/notadd/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
error Command failed with exit code 1.

try this instead:
calls$.handle().pipe(...)

from notadd.

chriszhao1988 avatar chriszhao1988 commented on May 23, 2024

same issue...

from notadd.

AnunnakiPool avatar AnunnakiPool commented on May 23, 2024

┃依剑✎听雨 QQ 159921208 群费,多给你家里的小孩买点药,就你也配维护社区,不分青红皂白,三观不正,也难怪一个野鸡大学毕业的

from notadd.

AnunnakiPool avatar AnunnakiPool commented on May 23, 2024

same issue...

┃依剑✎听雨 QQ 159921208 群费,多给你家里的小孩买点药,就你也配维护社区,不分青红皂白,三观不正,也难怪一个野鸡大学毕业的

from notadd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.