Skip to content

Issue resolved TCP server - #12

Open
Tejassveer08 wants to merge 1 commit into
usarfoss:mainfrom
Tejassveer08:main
Open

Issue resolved TCP server#12
Tejassveer08 wants to merge 1 commit into
usarfoss:mainfrom
Tejassveer08:main

Conversation

@Tejassveer08

Copy link
Copy Markdown

Fix #7

Fix: Include ES libs so Promise is recognized by TypeScript and editor
Summary
Adds modern ES libs/target to TypeScript and JS configs to resolve “Cannot find global value 'Promise'”.
Problem
Builds/editor reported missing global Promise due to absent ES libs in config.
Changes
jsconfig.json
Set target: "ES2020".
Set module: "ESNext".
Added lib: ["ES2020", "DOM"].
tsconfig.json
Set target: "ES2020".
Added lib: ["ES2020"].
Rationale
Promise is defined in ES2015+. Explicit target/lib ensures both TypeScript and the editor load the correct standard library types.
Impact
Type-level only; no runtime behavior change.
Unblocks builds/editing where Promise is used.
Testing
Cleaned and rebuilt TypeScript project; no Promise-related errors.
Editor TS server recognizes Promise without errors.
Risks
Low. Broader lib surface could expose additional DOM types in editor (intended via JS config only).
Rollback Plan
Revert changes to jsconfig.json and tsconfig.json if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot connect to TCP server when run with docker compose

1 participant