Title: Linked dependencies resolves to file system path · Issue #45109 · microsoft/TypeScript · GitHub
Open Graph Title: Linked dependencies resolves to file system path · Issue #45109 · microsoft/TypeScript
X Title: Linked dependencies resolves to file system path · Issue #45109 · microsoft/TypeScript
Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.58.0 OS Version: MacOS 11.4 (Big Sur) Obs: Not related to OS, as other OSs have the same problem Steps to Reproduce: (A reproducible cenario can be found her...
Open Graph Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.58.0 OS Version: MacOS 11.4 (Big Sur) Obs: Not related to OS, as other OSs have the same problem Steps to Reproduce: ...
X Description: Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.58.0 OS Version: MacOS 11.4 (Big Sur) Obs: Not related to OS, as other OSs have the same problem Steps to Reproduce: ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/45109
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Linked dependencies resolves to file system path","articleBody":"\u003c!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->\r\n\u003c!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->\r\n\u003c!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->\r\n\u003c!-- 🔎 Search existing issues to avoid creating duplicates. -->\r\n\u003c!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->\r\n\u003c!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->\r\n\u003c!-- 🔧 Launch with `code --disable-extensions` to check. -->\r\nDoes this issue occur when all extensions are disabled?: Yes\r\n\r\n\u003c!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->\r\n\u003c!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->\r\n- VS Code Version: 1.58.0\r\n- OS Version: MacOS 11.4 (Big Sur)\r\n\r\nObs: Not related to OS, as other OSs have the same problem\r\n\r\nSteps to Reproduce: (A reproducible cenario [can be found here](https://github.com/Muritavo/vscode_linked_dependency_bug))\r\n\r\n1. Use the link feature of npm to link a dependency to a local copy by using a symbolic link\r\n```\r\nyarn link SOME_DEPENDENCY\r\n```\r\n\r\n2. Now when using the intellisense feature to auto import, it resolves the dependency to the relative filesystem path instead of the node_modules require path.\r\nFor example:\r\n```\r\n// Instead of resolving as a require path\r\nimport {something} from \"dependency/something\";\r\n\r\n// It resolves to the relative path\r\nimport { something } from \"../../../../some/unrelated/path/dependencyFolder/something\"\r\n```\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/Muritavo","@type":"Person","name":"Muritavo"},"datePublished":"2021-07-19T15:27:39Z","url":"https://github.com/microsoft/TypeScript/issues/45109"}
| 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:f6815246-8a8e-4e18-f5d4-c6fb52d2eaae |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D496:4279A:93567D:C7BF03:6B00EBD7 |
| html-safe-nonce | 6e40ec9e40cd7a9f722d2ab6e27358030ca9858bddf21c35f7151f03ac2d2200 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDk2OjQyNzlBOjkzNTY3RDpDN0JGMDM6NkIwMEVCRDciLCJ2aXNpdG9yX2lkIjoiNTY0MDg4NDQ3NjQwMjc4OTMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7ef48384b29776443dec20a40262153431b04a1a5048e32291f110eb757e0ef5 |
| hovercard-subject-tag | issue:947976684 |
| 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/45109/issue_layout |
| twitter:image | https://opengraph.githubassets.com/546b7c7bc1226f28197f575de9027b5a79eb14782855ab0c5e871a1cba5e0bee/microsoft/TypeScript/issues/45109 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/546b7c7bc1226f28197f575de9027b5a79eb14782855ab0c5e871a1cba5e0bee/microsoft/TypeScript/issues/45109 |
| og:image:alt | Does this issue occur when all extensions are disabled?: Yes VS Code Version: 1.58.0 OS Version: MacOS 11.4 (Big Sur) Obs: Not related to OS, as other OSs have the same problem Steps to Reproduce: ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Muritavo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width