Title: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. · Issue #60588 · microsoft/TypeScript · GitHub
Open Graph Title: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. · Issue #60588 · microsoft/TypeScript
X Title: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. · Issue #60588 · microsoft/TypeScript
Description: 🔎 Search Terms Hi, from ts 5.7, I'm getting the same error as reported in #60132 but for jsx: react-native. Wheneven I use <>>, I get the above error 🕗 Version & Regression Information This changed between versions 5.6 and 5.7 ⏯ Playgr...
Open Graph Description: 🔎 Search Terms Hi, from ts 5.7, I'm getting the same error as reported in #60132 but for jsx: react-native. Wheneven I use <>>, I get the above error 🕗 Version & Regression Information This chang...
X Description: 🔎 Search Terms Hi, from ts 5.7, I'm getting the same error as reported in #60132 but for jsx: react-native. Wheneven I use <></>, I get the above error 🕗 Version & Regression In...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/60588
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.","articleBody":"### 🔎 Search Terms\n\nHi, from ts 5.7, I'm getting the same error as reported in #60132 but for `jsx: react-native`. Wheneven I use `\u003c\u003e\u003c/\u003e`, I get the above error\n\n### 🕗 Version \u0026 Regression Information\n\n- This changed between versions 5.6 and 5.7\n\n\n### ⏯ Playground Link\n\nhttps://www.typescriptlang.org/play/?jsx=3\u0026ts=5.7.2#code/JYWwDg9gTgLgBAbzgNWAUwO5wL5wGZQQhwDkUaAhgMYwC0AdhTMAG5okDcAUF2gB6RY+AK70awCPTgBhIpHpp6MABQBKBD3IxhUKQB4AfFzhw9qTAb0B6cxiMmz6O9dv3TVo9iA\n\n### 💻 Code\n\n```ts\nimport { View } from 'react-native';\n\nexport function Component(){\n\nreturn \u003c\u003e\n \u003cView\u003e\u003c/View\u003e\n \u003cView\u003e\u003c/View\u003e\n \u003c/\u003e\n}\n```\n\n\n### 🙁 Actual behavior\n\nThe fragment shows an error\n\n### 🙂 Expected behavior\n\nThis should work like ts 5.6 and shouldn't error\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/imranbarbhuiya","@type":"Person","name":"imranbarbhuiya"},"datePublished":"2024-11-25T10:19:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/60588/TypeScript/issues/60588"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:80026981-51fc-4941-6705-930d0566d9be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 924A:3D0306:111BD96:1870A6D:6A5F94A2 |
| html-safe-nonce | 97041fcb886977b6725c1318d6b25d60d77494d4b55e3121b170bf1e608e071a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjRBOjNEMDMwNjoxMTFCRDk2OjE4NzBBNkQ6NkE1Rjk0QTIiLCJ2aXNpdG9yX2lkIjoiNTQ2MTE0OTI0NjUxMTg5NDExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fd5cdb9fc86d2317ee78a803c43ee643fd7487a845fecfcea0bb349728e88f42 |
| hovercard-subject-tag | issue:2690133734 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/60588/issue_layout |
| twitter:image | https://opengraph.githubassets.com/795676bc35b3d52250c8487e6fa9d2915bb1d030f80e57a825abd066d7b145a4/microsoft/TypeScript/issues/60588 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/795676bc35b3d52250c8487e6fa9d2915bb1d030f80e57a825abd066d7b145a4/microsoft/TypeScript/issues/60588 |
| og:image:alt | 🔎 Search Terms Hi, from ts 5.7, I'm getting the same error as reported in #60132 but for jsx: react-native. Wheneven I use <>>, I get the above error 🕗 Version & Regression Information This chang... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imranbarbhuiya |
| hostname | github.com |
| expected-hostname | github.com |
| None | 419b66b5f218029570caa18c30987e7dbabe4f5a6767918b33a504d02739c9c7 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | de5b18aa36dbc0b61e03aeb111e84e90fde499b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width