Title: VSCode thinks there are 2 definitions of a React Component · Issue #24809 · microsoft/TypeScript · GitHub
Open Graph Title: VSCode thinks there are 2 definitions of a React Component · Issue #24809 · microsoft/TypeScript
X Title: VSCode thinks there are 2 definitions of a React Component · Issue #24809 · microsoft/TypeScript
Description: From Michael O'Connell (@mdo5004) on June 8, 2018 14:47 VSCode thinks there are 2 definitions of a React Component This issue was brought up recently but without sufficient info. Here is a minimal reproduction example: VSCode Version: 1....
Open Graph Description: From Michael O'Connell (@mdo5004) on June 8, 2018 14:47 VSCode thinks there are 2 definitions of a React Component This issue was brought up recently but without sufficient info. Here is a minimal ...
X Description: From Michael O'Connell (@mdo5004) on June 8, 2018 14:47 VSCode thinks there are 2 definitions of a React Component This issue was brought up recently but without sufficient info. Here is a mini...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/24809
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"VSCode thinks there are 2 definitions of a React Component","articleBody":"_From @mdo5004 on June 8, 2018 14:47_\n\n\u003c!-- Please search existing issues to avoid creating duplicates. -->\r\nVSCode thinks there are 2 definitions of a React Component\r\n\r\nThis issue was brought up recently but without sufficient info. Here is a minimal reproduction example:\r\n\r\n\u003c!-- Use Help > Report Issue to prefill these. -->\r\n- VSCode Version: 1.24.0\r\n- OS Version: MacOS High Sierra 10.13.4 (17E202)\r\n\r\nSteps to Reproduce:\r\n\r\n1. Create a React app\r\n```bash\r\n$ create-react-app my-bug-example\r\n$ code my-bug-example\r\n```\r\n2. Change src/App.js to \r\n\r\n```\r\nimport React, { Component } from 'react';\r\n\r\nclass App extends Component {\r\n render() {\r\n return (\r\n \u003cdiv className=\"App\">\r\n \u003cMyComponent />\r\n \u003c/div>\r\n );\r\n }\r\n}\r\n\r\nexport default App;\r\n\r\nclass MyComponent extends Component {\r\n render(){\r\n return \u003cMySingleComponent text=\"Instance 1\" />\r\n }\r\n}\r\n\r\nclass MySingleComponent extends Component {\r\n render(){\r\n return \u003cp>{text}\u003c/p>\r\n }\r\n}\r\n\r\n```\r\n3. CMD + hover on `\u003cMySingleComponent text=\"Instance 1\" />`\r\n\r\n\u003cimg width=\"518\" alt=\"screen shot 2018-06-08 at 10 33 09 am\" src=\"https://user-images.githubusercontent.com/12416969/41164179-88c8ed18-6b08-11e8-9619-8e1f5d093f59.png\">\r\n\r\n4. CMD + click on `\u003cMySingleComponent text=\"Instance 1\" />`\r\n\r\n\u003cimg width=\"471\" alt=\"screen shot 2018-06-08 at 10 33 26 am\" src=\"https://user-images.githubusercontent.com/12416969/41164182-8b65331a-6b08-11e8-98ab-975f5e18e2ff.png\">\r\n\r\n\u003c!-- Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: **Yes**\r\n\n\n_Copied from original issue: Microsoft/vscode#51459_","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2018-06-08T20:28:56Z","url":"https://github.com/microsoft/TypeScript/issues/24809"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:70b13ef2-d3ef-2657-feb9-ad26cfdc39a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6F8:38C5CF:2A6ADCB:35CB787:6B018C0F |
| html-safe-nonce | d39ce0ad68917fe30a27995c2f0fa3d05ca71fce85e657fec92ce0017c2e5c31 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkY4OjM4QzVDRjoyQTZBRENCOjM1Q0I3ODc6NkIwMThDMEYiLCJ2aXNpdG9yX2lkIjoiMzk5NTg1NDkyMTkxOTQ2NjUxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7113c2a44d0c8c85aed61599d4063e33ee2b93b0bb2ea985cb52263639a6e95f |
| hovercard-subject-tag | issue:330793121 |
| 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/24809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a76ddcde8676ed5fcec6be4ace15601d26717b4a1f49e7edeae50ad04868655b/microsoft/TypeScript/issues/24809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a76ddcde8676ed5fcec6be4ace15601d26717b4a1f49e7edeae50ad04868655b/microsoft/TypeScript/issues/24809 |
| og:image:alt | From Michael O'Connell (@mdo5004) on June 8, 2018 14:47 VSCode thinks there are 2 definitions of a React Component This issue was brought up recently but without sufficient info. Here is a minimal ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width