Fixing issue #11 #6
Annotations
1 error
|
copilot
Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?\\r\\n\\r\\n\\r\\n==== commentsOnJSXExpressionsArePreserved.tsx (1 errors) ====\\r\\n // file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs\\r\\n namespace JSX {}\\r\\n class Component {\\r\\n render() {\\r\\n return <div>\\r\\n ~~~~~\\r\\n {/* missing */}\\r\\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n {null/* preserved */}\\r\\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n {\\r\\n ~~~~~~~~~~~~~\\r\\n // ??? 1\\r\\n ~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n }\\r\\n ~~~~~~~~~~~~~\\r\\n { // ??? 2\\r\\n ~~~~~~~~~~~~~~~~~~~~~~\\r\\n }\\r\\n ~~~~~~~~~~~~~\\r\\n {// ??? 3\\r\\n ~~~~~~~~~~~~~~~~~~~~~\\r\\n }\\r\\n...\\n```File: `tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt`\\n```text\\n...\\n ~~~~~~~~~~~~~\\r\\n {\\r\\n ~~~~~~~~~~~~~\\r\\n // ??? 4\\r\\n ~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n /* ??? 5 */}\\r\\n ~~~~~~~~~~~~~~~~~~~~~~~~\\r\\n </div>;\\r\\n ~~~~~~~~~~~~~~\\r\\n!!! error TS2792: Cannot find module 'react/jsx-runtime'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?\\r\\n }\\r\\n }\\n```\",\"languageName\":\"Text\",\"path\":\"tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt\",\"range\":{\"start\":1,\"end\":39},\"ref\":\"refs/heads/main\",\"type\":\"snippet\",\"url\":\"https://github.com/RyanCavanaugh/TypeScript/blob/b989a1ef55e90985d11e069eb8140699597e7694/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt#L1-L39\"},{\"contents\":\"File: `src/compiler/transformers/jsx.ts`\\n```typescript\\n/*...*/\\n/** @internal */\\r\\nexport function transformJsx(context: TransformationContext): (x: SourceFile | Bundle) => SourceFile | Bundle {\\r\\n /*...*/\\n function addLineOfJsxText(acc: string | undefined, trimmedLine: string): string {\\r\\n // We do not escape the string here as that is handled by the printer\\r\\n // when it emits the literal. We do, however, need to decode JSX entities.\\r\\n const decoded = decodeEntities(trimmedLine);\\r\\n return acc === undefined ? decoded : acc + \\\" \\\" + decoded;\\r\\n }\\r\\n /*...*/\\n}\\r\\n/*...*/\\n```File: `src/compiler/transformers/jsx.ts`\\n```typescript\\n/*...*/\\nexport function transformJsx(context: TransformationContext): (x: SourceFile | Bundle) => SourceFile | Bundle {\\r\\n /*...*/\\n function fixupWhitespaceAndDecodeEntities(text: string): string | undefined {\\r\\n /*...*/\\n // Last line had a non-whitespace character. Emit the 'trimLeft', meaning keep trailing whitespace.\\r\\n ? addLineOfJsxText(acc, text.substr(firstNonWhitespace))\\r\\n // Last line was all whitespace, so ignore it\\r\\n : acc;\\r\\n }\\r\\n /*...*/\\n}\\r\\n/*...*/\\n```File: `src/compiler/transformers/jsx.ts`\\n```typescript\\n/*...*/\\n/** @internal */\\r\\nexport function transformJsx(context: TransformationContext): (x: SourceFile | Bundle) => SourceFile | Bundle {\\r\\n /*...*/\\n function transformJsxAttributesToObjectProps(attrs: readonly (JsxSpreadAttribute | JsxAttribute)[], children?: PropertyAssignment) {\\r\\n /*...*/\\n }\\r\\n\\r\\n function transformJsxAttributesToProps(attrs: readonly (JsxSpreadAttribute | JsxAttribute)[], children?: PropertyAssignment) {\\r\\n /*...*/\\n }\\r\\n\\r\\n function transformJsxAttributesToExpression(attrs: readonly (JsxSpreadAttribute | J
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
results
Expired
|
1.79 KB |
sha256:95f48559a2df967c705549f432d1afbf475e4fbd333c34d279385805b6aa34d8
|
|