Skip to content

Crash when IntrinsicElements extends Record<string, any> #34730

Closed
@kgtkr

Description

@kgtkr

TypeScript Version: 3.7.x-dev.201xxxxx

Search Terms:

  • jsx
  • tsx
  • Record
  • extends
  • IntrinsicElements

Code

/* @jsx D.createElement */

import * as D from "./d";

<a />;
// d.ts
export declare namespace JSX {
  interface IntrinsicElements extends Record<string, any> {}
}
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

Actual behavior:

Cannot read property 'type' of undefined.

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions