Skip to content

DOCS: TypeScript recommendation and require workaround#4127

Merged
tlimoncelli merged 1 commit intoStackExchange:mainfrom
cafferata:docs/typescript-require-calls
Mar 5, 2026
Merged

DOCS: TypeScript recommendation and require workaround#4127
tlimoncelli merged 1 commit intoStackExchange:mainfrom
cafferata:docs/typescript-require-calls

Conversation

@cafferata
Copy link
Copy Markdown
Collaborator

Document the recommended tsconfig.json setup with "module": "None" to prevent TypeScript from treating require() calls as CommonJS module imports, which causes global variables to stop being recognized.

Also add require as a known issue with an alternative workaround.

Fixes #3507

@tlimoncelli tlimoncelli merged commit 14bab6f into StackExchange:main Mar 5, 2026
12 checks passed
@cafferata cafferata deleted the docs/typescript-require-calls branch March 5, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typescript autocomplete puts errors on require calls

2 participants