Skip to content

Playground: dependencies for jsxImportSource are not installed #1427

Closed as not planned
@trusktr

Description

@trusktr

TS team decided to use /* @fooImportSource */ syntax for importing JSX types (otherwise if JSX types are imported with import syntax then the JSX expressions do not see the JSX namespace), but the playground is unaware that it needs to import the dependencies for that sort of syntax:

/* @jsxImportSource solid-js */
const d = <div /> // Error: interface JSX.IntrinsicElements is not defined, because playground does not install solid-js

playground example

If we could instead rely on import for importing JSX types (as would be intuitive and aligned with EcmasScript standards and conventions, instead of having to use new @fooImportSource syntax), the playground example (which will install solid-js based on the import statement) would just work already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PlaygroundIssues that affect the PlaygroundPlayground ATAHoles in the current type acquisition

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions