|
| 1 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,11): error TS2875: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. |
| 2 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,11): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. |
| 3 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,11): error TS2657: JSX expressions must have one parent element. |
| 4 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,21): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. |
| 5 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,29): error TS1003: Identifier expected. |
| 6 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,29): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. |
| 7 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,39): error TS1109: Expression expected. |
| 8 | +jsxAttributeInitializerMultipleElementsNoCrash.tsx(4,40): error TS1109: Expression expected. |
| 9 | + |
| 10 | + |
| 11 | +==== jsxAttributeInitializerMultipleElementsNoCrash.tsx (8 errors) ==== |
| 12 | + declare namespace JSX { interface IntrinsicElements { [x: string]: any } } |
| 13 | + declare const React: any; |
| 14 | + |
| 15 | + const a = <div attr=<span /><span /> />; |
| 16 | + ~~~~~~~~~~~~~~~~~~ |
| 17 | +!!! error TS2875: This JSX tag requires the module path 'react/jsx-runtime' to exist, but none could be found. Make sure you have types for the appropriate package installed. |
| 18 | + ~~~~~~~~~~~~~~~~~~ |
| 19 | +!!! error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. |
| 20 | + ~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 21 | +!!! error TS2657: JSX expressions must have one parent element. |
| 22 | + ~~~~~~~~ |
| 23 | +!!! error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. |
| 24 | + ~ |
| 25 | +!!! error TS1003: Identifier expected. |
| 26 | + ~~~~~~~~ |
| 27 | +!!! error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists. |
| 28 | + ~ |
| 29 | +!!! error TS1109: Expression expected. |
| 30 | + ~ |
| 31 | +!!! error TS1109: Expression expected. |
| 32 | + |
0 commit comments