You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
EventSource in (dom-monkeypatch.d.ts) is conflicting with EventSource in Typescript lib.dom.d.ts
What version are you on?
Latest version - 11.2.1
To Reproduce
Steps to reproduce the behavior:
Install Stellar SDK latest version
upgrade typescript version to 5.3.3
Try building the project and you get the error below:
node_modules/stellar-sdk/types/dom-monkeypatch.d.ts:34:12 - error TS2717: Subsequent property declarations must have the same type. Property 'CLOSED' must be of type'2', but here has type'number'.
34 readonly CLOSED: number;~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:8171:14
8171 readonly CLOSED: 2;~~~~~~
'CLOSED' was also declared here.
node_modules/stellar-sdk/types/dom-monkeypatch.d.ts:35:12 - error TS2717: Subsequent property declarations must have the same type. Property 'CONNECTING' must be of type'0', but here has type'number'.
35 readonly CONNECTING: number;~~~~~~~~~~
node_modules/typescript/lib/lib.dom.d.ts:8169:14
8169 readonly CONNECTING: 0;~~~~~~~~~~
'CONNECTING' was also declared here.
node_modules/stellar-sdk/types/dom-monkeypatch.d.ts:36:12 - error TS2717: Subsequent property declarations must have the same type. Property 'OPEN' must be of type'1', but here has type'number'.
36 readonly OPEN: number;~~~~
node_modules/typescript/lib/lib.dom.d.ts:8170:14
8170 readonly OPEN: 1;~~~~
'OPEN' was also declared here.
Found 3 errors in the same file, starting at: node_modules/stellar-sdk/types/dom-monkeypatch.d.ts:34
Additional context
I was able to fix this by deleting dom-monkeypatch.d.ts from the package and it worked fine without it
The text was updated successfully, but these errors were encountered:
Describe the bug
EventSource in (dom-monkeypatch.d.ts) is conflicting with EventSource in Typescript lib.dom.d.ts
What version are you on?
Latest version - 11.2.1
To Reproduce
Steps to reproduce the behavior:
Additional context
I was able to fix this by deleting dom-monkeypatch.d.ts from the package and it worked fine without it
The text was updated successfully, but these errors were encountered: