Closed theofilis closed 6 years ago
Ran into this error when npm run build:node
. Does it successfully work on your environment?
ERROR in [at-loader] ./src/rest/services/account.ts:41:36
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
Types of property 'then' are incompatible.
Type '{ <R1, R2>(onFulfilled: (value: AxiosResponse) => R1 | Promise<R1>, onRejected: (error: any) => R...' is not assignable to type '{ (onfulfilled?: ((value: any) => any) | null | undefined, onrejected?: ((reason: any) => any) | ...'.
Type 'Promise<any>' is not assignable to type 'Promise<any>'. Two different types with this name exist, but they are unrelated.
Types of property 'then' are incompatible.
Type '{ <R1, R2>(onFulfilled: (value: any) => R1 | Promise<R1>, onRejected: (error: any) => R2 | Promis...' is not assignable to type '{ (onfulfilled?: ((value: any) => any) | null | undefined, onrejected?: ((reason: any) => any) | ...'.
Type 'Promise<any>' is not assignable to type 'Promise<any>'. Two different types with this name exist, but they are unrelated.
ERROR in [at-loader] ./src/rest/services/account.ts:45:36
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
ERROR in [at-loader] ./src/rest/services/asset.ts:51:34
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
ERROR in [at-loader] ./src/rest/services/asset.ts:54:34
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
ERROR in [at-loader] ./src/rest/services/asset.ts:57:36
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
ERROR in [at-loader] ./src/rest/services/domain.ts:28:35
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
ERROR in [at-loader] ./src/rest/services/domain.ts:32:35
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.
ERROR in [at-loader] ./src/rest/services/transaction.ts:37:47
TS2345: Argument of type 'AxiosPromise' is not assignable to parameter of type 'Promise<any>'.