Skip to content

Unable to import JSX types, Error: "no interface JSX.IntrinsicElements exists", although it exists #47072

@trusktr

Description

@trusktr

TypeScript Version: 4.5.2

Search Terms:

no interface JSX.IntrinsicElements exists

Code

import type {JSX} from 'solid-js'

type test = JSX.IntrinsicElements // <-- no error, the type exists.

const d = <div /> // Error: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.

playground

Expected behavior:

It should see the definition of JSX.IntrinsicElements which is present due to the import statement.

Actual behavior:

"no interface JSX.IntrinsicElements exists"

Metadata

Metadata

Assignees

Labels

Working as IntendedThe behavior described is the intended behavior; this is not a bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions