Title: Cannot locate component (goto definition) in a React project · Issue #570 · sourcegraph/javascript-typescript-langserver · GitHub
Open Graph Title: Cannot locate component (goto definition) in a React project · Issue #570 · sourcegraph/javascript-typescript-langserver
X Title: Cannot locate component (goto definition) in a React project · Issue #570 · sourcegraph/javascript-typescript-langserver
Description: With the following code: import React from "react"; import OtherComponent from "./OtherComponent"; const MainComponent = props => { return ( Open Graph Description: With the following code: import React from "react"; import OtherComponent from "./OtherComponent"; const MainComponent = props => { return ( X Description: With the following code: import React from "react"; import OtherComponent from "./OtherComponent"; const MainComponent = props => { return ( <tr> <td>{props.item....
Opengraph URL: https://github.com/sourcegraph/javascript-typescript-langserver/issues/570
X: @github
Domain: github.com
Links:
Viewport: width=device-width
{props.item.date} {props.item.description}
{props.item.date} {props.item.descript...
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot locate component (goto definition) in a React project","articleBody":"With the following code:\r\n```\r\nimport React from \"react\";\r\nimport OtherComponent from \"./OtherComponent\";\r\n\r\nconst MainComponent = props => {\r\n return (\r\n \u003ctr>\r\n \u003ctd>{props.item.date}\u003c/td>\r\n \u003ctd>{props.item.description}\u003c/td>\r\n \u003ctd style={{ textAlign: \"center\" }}>\r\n \u003cOtherComponent onClick={() => props.doStuff()} />\r\n \u003c/td>\r\n \u003c/tr>\r\n );\r\n};\r\n\r\nexport default MainComponent;\r\n```\r\n\r\nCalling `xref-find-definitions` using `M-.` (goto definition) in Emacs will go to the second line of the file (`import OtherComponent from \"./OtherComponent\";`) instead of actually going to the file where `OtherComponent` is defined.\r\n\r\nTrying the same thing with [typescript-language-server](https://github.com/theia-ide/typescript-language-server) will go to the file where `OtherComponent` is defined. \r\n\r\nMore details about this issue can be found here:\r\nhttps://github.com/joaotavora/eglot/issues/243","author":{"url":"https://github.com/carlbolduc","@type":"Person","name":"carlbolduc"},"datePublished":"2019-03-26T14:05:26Z","url":"https://github.com/sourcegraph/javascript-typescript-langserver/issues/570"}
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:eb244bd7-d07a-e022-9702-d25b380e714b current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id E41E:2D40DE:3E814F:4F465D:6B010810 html-safe-nonce 955b77a2f7aa6b555ad8a86c617ad99d0cc3b2047e2d3d697e8b17969ead18a4 visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDFFOjJENDBERTozRTgxNEY6NEY0NjVEOjZCMDEwODEwIiwidmlzaXRvcl9pZCI6IjM4OTkyMTgyNzgwMTg1MTcwMDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== visitor-hmac e615489c8342ff906178618143fc792a3824b73ba8140e72bac8b0ca8da72051 hovercard-subject-tag issue:425438793 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/sourcegraph/javascript-typescript-langserver/570/issue_layout twitter:image https://opengraph.githubassets.com/e3e997afd068b41c977f2fa10914424ceeab90c9a34ea55e3db2ed984b4b541a/sourcegraph/javascript-typescript-langserver/issues/570 twitter:card summary_large_image og:image https://opengraph.githubassets.com/e3e997afd068b41c977f2fa10914424ceeab90c9a34ea55e3db2ed984b4b541a/sourcegraph/javascript-typescript-langserver/issues/570 og:image:alt With the following code: import React from "react"; import OtherComponent from "./OtherComponent"; const MainComponent = props => { return (
{props.item.date} {props.item.descript... og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username carlbolduc hostname github.com expected-hostname github.com None cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 turbo-cache-control no-preview go-import github.com/sourcegraph/javascript-typescript-langserver git https://github.com/sourcegraph/javascript-typescript-langserver.git octolytics-dimension-user_id 3979584 octolytics-dimension-user_login sourcegraph octolytics-dimension-repository_id 68805662 octolytics-dimension-repository_nwo sourcegraph/javascript-typescript-langserver octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 68805662 octolytics-dimension-repository_network_root_nwo sourcegraph/javascript-typescript-langserver 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 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a ui-target full theme-color #1e2327 color-scheme light dark react-app-name issues
URLs of crawlers that visited me.