Skip to content

Playground: Diagnostic with related information causes "Uncaught Error: Converting circular structure to JSON" #26068

@mattmccutchen

Description

@mattmccutchen

TypeScript Version: playground

Search Terms: playground "Converting circular structure to JSON" "cyclic object value"

Code

let Number = 42;
let x: number = "oops";

Expected behavior: Compile error on the second line.

Actual behavior: No compile error shown. In the developer console, "Uncaught Error: Converting circular structure to JSON" (Chrome) or "Error: cyclic object value" (Firefox).

Playground Link: link

Related Issues: none

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueWebsiteDeprecated - please forward issue to microsoft/TypeScript-Website

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions