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.
TS team decided to use
/* @fooImportSource */syntax for importing JSX types (otherwise if JSX types are imported withimportsyntax then the JSX expressions do not see theJSXnamespace), but the playground is unaware that it needs to import the dependencies for that sort of syntax:playground example
If we could instead rely on
importfor importing JSX types (as would be intuitive and aligned with EcmasScript standards and conventions, instead of having to use new@fooImportSourcesyntax), the playground example (which will install solid-js based on theimportstatement) would just work already.