Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subsequent property declarations must have the same type #838

Closed
gabrieladeniji opened this issue Jun 6, 2023 · 1 comment
Closed

Subsequent property declarations must have the same type #838

gabrieladeniji opened this issue Jun 6, 2023 · 1 comment
Labels

Comments

@gabrieladeniji
Copy link

Describe the bug

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'.
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'.
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'.

What version are you on?
"stellar-sdk@10.4.1"

To Reproduce
Steps to reproduce the behavior:

import { Server } from 'stellar-sdk';

Expected behavior

[nodemon] starting `node ./dist/app.js`

Additional context
typescript@5.0.4

@gabrieladeniji
Copy link
Author

I was able to fix it by adding this to tsconfig.json

"skipLibCheck": true 

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

No branches or pull requests

1 participant