Skip to content

RangeError: Maximum call stack size exceeded when building monaco (5.5.2)Β #59253

Closed
@SamVerschueren

Description

@SamVerschueren

πŸ”Ž Search Terms

"maximum call stack size"

πŸ•— Version & Regression Information

  • This is a crash
  • This changed between versions 5.4.5 and 5.5.2

⏯ Playground Link

No response

πŸ’» Code

Not sure which code causes the crash.

πŸ™ Actual behavior

When compiling monaco-editor with TypeScript@5.5.2 or higher, it will result in a Maximum call stack size exceeded.

  1. Open https://stackblitz.com/~/github.com/microsoft/monaco-editor or clone https://github.com/microsoft/monaco-editor locally
  2. Run npm run build-monaco-editor (this will work as it uses TypeScript@5.4.5)
  3. Update TypeScript by running npm install typescript@5.5.2
  4. Run npm run build-monaco-editor again (this will fail)

πŸ™‚ Expected behavior

When compiling monaco-editor with the latest TypeScript, I shouldn't be seeing a Maximum call stack size exceeded.

Additional information about the issue

No response

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputDomain: JS EmitThe issue relates to the emission of JavaScriptFix AvailableA PR has been opened for this issueFixedA PR has been merged for this issue

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions