nestjs / schedule

Schedule module for Nest framework (node.js) ⏰

Home Page:https://nestjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No overload matches this call error

twigs67 opened this issue · comments

Hello,

I'm getting the following error after installing this package.

node_modules/@types/socket.io-redis/index.d.ts:77:45 - error TS2694: Namespace '"/Users/server/node_modules/@types/socket.io-redis/node_modules/socket.io/dist/index"' has no exported member 'Adapter'.

77     interface RedisAdapter extends SocketIO.Adapter {
                                               ~~~~~~~

src/hybrid/forms/forms.entity.ts:144:31 - error TS2769: No overload matches this call.
  Overload 1 of 3, '(inp?: MomentInput, strict?: boolean): Moment', gave the following error.
    Argument of type 'TransformFnParams' is not assignable to parameter of type 'MomentInput'.
      Type 'TransformFnParams' has no properties in common with type 'MomentInputObject'.
  Overload 2 of 3, '(inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment', gave the following error.
    Argument of type 'TransformFnParams' is not assignable to parameter of type 'MomentInput'.
  Overload 3 of 3, '(inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment', gave the following error.
    Argument of type 'TransformFnParams' is not assignable to parameter of type 'MomentInput'.

144   @Transform((date) => moment(date).format('MM/DD/YYYY'))

My package.json

  "dependencies": {
    "@nestjs-modules/mailer": "^1.5.1",
    "@nestjs/axios": "^0.0.1",
    "@nestjs/common": "^7.5.1",
    "@nestjs/config": "0.5.0",
    "@nestjs/core": "^7.5.1",
    "@nestjs/jwt": "^7.0.0",
    "@nestjs/mongoose": "^7.1.1",
    "@nestjs/passport": "^7.1.5",
    "@nestjs/platform-express": "^7.5.1",
    "@nestjs/platform-socket.io": "7.6.13",
    "@nestjs/platform-ws": "^7.6.13",
    "@nestjs/schedule": "^1.0.1",
    "@nestjs/serve-static": "^2.1.3",
    "@nestjs/swagger": "^4.7.0",
    "@nestjs/typeorm": "^7.1.5",
    "@nestjs/websockets": "^7.6.11",
    "@types/crypto-js": "^4.0.1",
    "bcrypt": "^5.0.0",
    "cache-manager": "^3.4.0",
    "cache-manager-redis-store": "^2.0.0",
    "class-transformer": "^0.3.1",
    "class-validator": "^0.12.2",
    "crypto-js": "^4.0.0",
    "dotenv": "^8.2.0",
    "glob-parent": "^5.1.2",
    "handlebars": "^4.7.7",
    "jwk-to-pem": "^2.0.3",
    "moment": "^2.29.1",
    "mongoose": "^5.10.13",
    "mysql": "^2.18.1",
    "nanoid": "^3.1.9",
    "nest-winston": "^1.4.0",
    "nestjs-rate-limiter": "^2.7.0",
    "nestjs-stripe": "^0.4.0",
    "nestjs-twilio": "^1.0.2",
    "nodemailer": "^6.4.17",
    "passport": "^0.4.1",
    "passport-jwt": "^4.0.0",
    "passport-local": "^1.0.0",
    "pg": "^8.5.1",
    "ramda": "^0.27.1",
    "redis": "^3.0.2",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.2",
    "rxjs": "^7.3.0",
    "socket.io-redis": "5.4.0",
    "stripe": "^8.132.0",
    "swagger-ui-express": "^4.1.4",
    "twilio": "^3.54.0",
    "typeorm": "^0.2.30",
    "typeorm-transactional-cls-hooked": "^0.1.20",
    "winston": "^3.3.3",
    "winston-daily-rotate-file": "^4.5.0"
  },
  "devDependencies": {
    "@nestjs/cli": "^7.5.1",
    "@nestjs/schematics": "^7.1.3",
    "@nestjs/testing": "^7.5.1",
    "@types/cache-manager": "^3.4.0",
    "@types/cron": "^1.7.3",
    "@types/dotenv": "^8.2.0",
    "@types/express": "^4.17.8",
    "@types/jest": "^26.0.15",
    "@types/jwk-to-pem": "^2.0.0",
    "@types/node": "^14.14.6",
    "@types/passport-local": "^1.0.33",
    "@types/socket.io": "2.1.13",
    "@types/socket.io-redis": "1.0.27",
    "@types/supertest": "^2.0.10",
    "@types/twilio": "^2.11.0",
    "@types/ws": "^7.4.6",
    "@typescript-eslint/eslint-plugin": "^4.6.1",
    "@typescript-eslint/parser": "^4.6.1",
    "aws-sdk": "^2.695.0",
    "eslint": "^7.12.1",
    "eslint-config-prettier": "^6.15.0",
    "eslint-plugin-prettier": "^3.1.4",
    "jest": "^26.6.3",
    "prettier": "^2.1.2",
    "supertest": "^6.0.0",
    "ts-jest": "^26.4.3",
    "ts-loader": "^8.0.8",
    "ts-node": "^9.0.0",
    "tsconfig-paths": "^3.9.0",
    "tslint": "^5.20.0",
    "typescript": "^4.0.5"
  },

This is unrelated to this package.