Fixing issue #11 #11
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/7e92f89e3940ff4e08ddc105dd7cb702ab44b748/tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsx,module=system,moduledetection=auto).errors.txt#L1-L39\"},{\"contents\":\"File: `tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=commonjs,moduledetection=legacy).js`\\n```javascript\\n/*...*/\\nclass Component {\\n render() {\\n return <div>\\n {/* missing */}\\n {null/* preserved */}\\n {\\n // ??? 1\\n }\\n { // ??? 2\\n }\\n {// ??? 3\\n }\\n {\\n // ??? 4\\n /* ??? 5 */}\\n </div>;\\n }\\n}\\r\\n/*...*/\\n function Component() {\\r\\n }\\r\\n /*...*/\\n```File: `tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=commonjs,moduledetection=legacy).js`\\n```javascript\\n//// [tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx] ////\\r\\n\\r\\n//// [commentsOnJSXExpressionsArePreserved.tsx]\\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\\nnamespace JSX {}\\nclass Component {\\n /*...*/\\n}\\r\\n\\r\\n//// [commentsOnJSXExpressionsArePreserved.js]\\r\\nvar _jsxFileName = \\\"commentsOnJSXExpressionsArePreserved.tsx\\\";\\r\\nvar Component = /** @Class */ (function () {\\r\\n function Component() {\\r\\n }\\r\\n Component.prototype.render = function () {\\r\\n return (0, _a.jsxDEV)(\\\"div\\\", { children: null /* preserved */ }, void 0, false, { fileName: _jsxFileName, lineNumber: 5, columnNumber: 15 }, this);\\r\\n };\\r\\n return Component;\\r\\n}());\\r\\n\\n```\",\"languageName\":\"JavaScript\",\"path\":\"tests/baselines/reference/commentsOnJSXExpressionsArePreserved(jsx=react-jsxdev,module=commonjs,moduledetection=legacy).js\",\"range\":{\"start\":1,\"end\":34},\"ref\":\"refs/heads/main\",\"type\":\"snippet\",\"url\":\"https://github.com/RyanCavanaugh/TypeScript/blob/7e92f89e3940ff4e08ddc105dd7cb702ab44b748
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
results
Expired
|
1.51 KB |
sha256:5e4162a30c649cbf39cf9238f1106aa1f2efded523b7839c255a9fec6563b058
|
|