TSError: able Невозможно скомпилировать TypeScript - TSError (диагностический текст, диагностический код) - PullRequest
1 голос
/ 02 мая 2020

когда я запускаю yarn start сервер выдает мне следующую ошибку, я пытался исправить ее в пакете. json и tsconfig. json, но все еще не работает

xxxxxxxxxxx/node_modules/ts-node/src/index.ts:423
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/startServer.ts:63:7 - error TS2345: Argument of type '{ store: RateLimitRedisStore; windowMs: number; max: number; delayMs: number; }' is not assignable to parameter of type 'Options'.
  Object literal may only specify known properties, and 'delayMs' does not exist in type 'Options'.

63       delayMs: 0 // disable delaying - full speed until the max limit is reached
         ~~~~~~~~~~
...