Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

@universal-login/sdk build fails: #1189

Open
silkPK opened this issue Oct 3, 2019 · 1 comment
Open

@universal-login/sdk build fails: #1189

silkPK opened this issue Oct 3, 2019 · 1 comment

Comments

@silkPK
Copy link

silkPK commented Oct 3, 2019

yarn build execution report error:

@universal-login/sdk
$ yarn clean
$ rimraf dist
$ tsc --build tsconfig.build.json && tsc -p tsconfig.declaration.json
 | universal-login-sdk/lib/integration/http/fetch.ts(8,3): error TS2322: Type '(url: RequestInfo, init?: RequestInit | undefined) => Promise<IResponse>' is not assignable to type '{ (input: RequestInfo, init?: RequestInit | undefined): Promise<Response>; (input: RequestInfo, init?: RequestInit | undefined): Promise<Response>; }'.
 |   Type 'Promise<IResponse>' is not assignable to type 'Promise<Response>'.
 |     Type 'IResponse' is not assignable to type 'Response'.
 |       Types of property 'headers' are incompatible.
 |         Type 'IHeaders' is not assignable to type 'Headers'.
 |           Types of property 'forEach' are incompatible.
 |             Type '(callback: (value: string, index: number, headers: IHeaders) => void, thisArg?: any) => void' is not assignable to type '{ (callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void; (callback: Function, thisArg?: any): void; }'.
 |               Types of parameters 'callback' and 'callbackfn' are incompatible.
 |                 Types of parameters 'key' and 'index' are incompatible.
 |                   Type 'number' is not assignable to type 'string'.
@silkPK
Copy link
Author

silkPK commented Oct 9, 2019

the problem seem related to typescript version (DOM Updates):
https://devblogs.microsoft.com/typescript/announcing-typescript-3-6/#dom-updates

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant