codius/codiusd

TypeScript errors building latest master

Closed this issue · 1 comments

On commit 7e3603d
Ran npm install --unsafe-perm

Relevant logs:

src/services/HyperClient.ts:36:7 - error TS2345: Argument of type '{ socketPath: string; method: string; url: string; params: { podName: string; }; responseType: st...' is not assignable to parameter of type 'AxiosRequestConfig'.
  Object literal may only specify known properties, and 'socketPath' does not exist in type 'AxiosRequestConfig'.

36       socketPath: this.config.hyperSock,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


src/services/HyperClient.ts:65:7 - error TS2345: Argument of type '{ socketPath: string; method: string; url: string; params: { imageName: string; }; }' is not assignable to parameter of type 'AxiosRequestConfig'.
  Object literal may only specify known properties, and 'socketPath' does not exist in type 'AxiosRequestConfig'.

65       socketPath: this.config.hyperSock,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


src/services/HyperClient.ts:77:7 - error TS2345: Argument of type '{ socketPath: string; method: string; url: string; data: PodSpec; }' is not assignable to parameter of type 'AxiosRequestConfig'.
  Object literal may only specify known properties, and 'socketPath' does not exist in type 'AxiosRequestConfig'.

77       socketPath: this.config.hyperSock,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


src/services/HyperClient.ts:90:7 - error TS2345: Argument of type '{ socketPath: string; method: string; url: string; params: { podId: string; }; }' is not assignable to parameter of type 'AxiosRequestConfig'.
  Object literal may only specify known properties, and 'socketPath' does not exist in type 'AxiosRequestConfig'.

90       socketPath: this.config.hyperSock,
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


src/services/HyperClient.ts:109:7 - error TS2345: Argument of type '{ socketPath: string; method: string; url: string; params: { podId: string; }; }' is not assignable to parameter of type 'AxiosRequestConfig'.
  Object literal may only specify known properties, and 'socketPath' does not exist in type 'AxiosRequestConfig'.

109       socketPath: this.config.hyperSock,
          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What version of node are you running? If it's in Node 8, node_modules should be re-installed using Node 10, in order to fix the error.