Title: No import suggestions for transitive dependencies in [v3.7.3] · Issue #35560 · microsoft/TypeScript · GitHub
Open Graph Title: No import suggestions for transitive dependencies in [v3.7.3] · Issue #35560 · microsoft/TypeScript
X Title: No import suggestions for transitive dependencies in [v3.7.3] · Issue #35560 · microsoft/TypeScript
Description: TypeScript Version: 3.7.3 Search Terms: auto-import suggestions transitive dependencies Description of the issue Auto-import suggestions for transitive dependencies exported types don't show up anymore. In version 3.6.4 it works fine. If...
Open Graph Description: TypeScript Version: 3.7.3 Search Terms: auto-import suggestions transitive dependencies Description of the issue Auto-import suggestions for transitive dependencies exported types don't show up any...
X Description: TypeScript Version: 3.7.3 Search Terms: auto-import suggestions transitive dependencies Description of the issue Auto-import suggestions for transitive dependencies exported types don't show up...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/35560
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No import suggestions for transitive dependencies in [v3.7.3]","articleBody":"\u003c!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨\r\n\r\nHalf of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common \"Bugs\" That Aren't Bugs section!\r\n\r\nPlease help us by doing the following steps before logging an issue:\r\n * Search: https://github.com/Microsoft/TypeScript/search?type=Issues\r\n * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ\r\n\r\nPlease fill in the *entire* template below.\r\n-->\r\n\r\n\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 3.7.3\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:** auto-import suggestions transitive dependencies\r\n\r\n**Description of the issue**\r\n\r\nAuto-import suggestions for transitive dependencies exported types don't show up anymore. \r\n- In version 3.6.4 it works fine.\r\n- If you delete `package.json` the suggestions start showing-up\r\n- Tried in vscode and webstorm and the same behavior happens in both\r\n\r\n**Code**\r\n```ts\r\n// package Z\r\nconst Crab = \"🦀\";\r\n\r\nexport function logCrab() {\r\n console.log(Crab);\r\n}\r\n\r\nexport function logCrab2() {\r\n console.log(Crab);\r\n console.log(Crab);\r\n}\r\n\r\n// package Y (depends on Z)\r\nimport { logCrab, logCrab2 } from \"demo-imports-issue-dep-dep\";\r\n\r\nconst Pineapple = \"🍍\";\r\n\r\nexport function logPineapple() {\r\n logCrab();\r\n console.log(Pineapple);\r\n}\r\n\r\nexport function logPineapple2() {\r\n logCrab2();\r\n console.log(Pineapple);\r\n console.log(Pineapple);\r\n}\r\n\r\n// package X (depends on Y)\r\nimport { logPineapple } from \"demo-imports-issue-dep\";\r\nimport { logCrab } from \"demo-imports-issue-dep-dep\";\r\n\r\nlogPineapple();\r\nlogCrab();\r\n// log \u003c-- type this and hit the shortcut to have suggestions\r\n```\r\n\r\n**Expected behavior:**\r\nv3.6.4 (notice `logCrab2` is in the suggestions)\r\n\r\n\r\n**Actual behavior:**\r\nv3.7.3 with package.json (notice `logCrab2` isn't in the suggestions):\r\n\r\n\r\nv3.7.3 without package.json (notice `logCrab2` is in the suggestions)\r\n\r\n\r\n**Playground Link:** \u003c!-- A link to a TypeScript Playground \"Share\" link which demonstrates this behavior -->\r\n\r\nBase project example: https://github.com/gdostie/demo-imports-issue\r\nProject's direct dependency: https://github.com/gdostie/demo-imports-issue-dep\r\nProject's transitive dependency (which exports the `logCrab2` function): https://github.com/gdostie/demo-imports-issue-dep-dep\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\n","author":{"url":"https://github.com/gdostie","@type":"Person","name":"gdostie"},"datePublished":"2019-12-07T00:18:04Z","url":"https://github.com/microsoft/TypeScript/issues/35560"}
| 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:73ac5564-faef-3c7c-6099-087f358500ac |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BB62:3D97C8:9B91CE:D16F22:6B00EA1E |
| html-safe-nonce | e81dca6fe783f89b7da77139f2d7679451ed6f02c0d3394ad9779bd246ef726a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQjYyOjNEOTdDODo5QjkxQ0U6RDE2RjIyOjZCMDBFQTFFIiwidmlzaXRvcl9pZCI6IjMzOTAyNzA0ODYwMDgwOTczMTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd9ed5348ee39a58cac524f08547777a87a62d6a0182807ad80d2b2fd1e52a37 |
| hovercard-subject-tag | issue:534318414 |
| 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/35560/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cd207e1f62508202fbb46df63ee192faf043a6a4970ed79610de1be22b6c54b6/microsoft/TypeScript/issues/35560 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cd207e1f62508202fbb46df63ee192faf043a6a4970ed79610de1be22b6c54b6/microsoft/TypeScript/issues/35560 |
| og:image:alt | TypeScript Version: 3.7.3 Search Terms: auto-import suggestions transitive dependencies Description of the issue Auto-import suggestions for transitive dependencies exported types don't show up any... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdostie |
| 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