Title: QuickFix error: add missing import with already reexported variable · Issue #18272 · microsoft/TypeScript · GitHub
Open Graph Title: QuickFix error: add missing import with already reexported variable · Issue #18272 · microsoft/TypeScript
X Title: QuickFix error: add missing import with already reexported variable · Issue #18272 · microsoft/TypeScript
Description: TypeScript Version: nightly (2.6.0-dev.20170904) Code ./a.ts export const A_VALUE: string = "ASTRING"; ./b.ts export { A_VALUE } from "./a"; A_VALUE // Using quick fix here Actual behavior: 'getCodeFixes' request failed with error. Error...
Open Graph Description: TypeScript Version: nightly (2.6.0-dev.20170904) Code ./a.ts export const A_VALUE: string = "ASTRING"; ./b.ts export { A_VALUE } from "./a"; A_VALUE // Using quick fix here Actual behavior: 'getCod...
X Description: TypeScript Version: nightly (2.6.0-dev.20170904) Code ./a.ts export const A_VALUE: string = "ASTRING"; ./b.ts export { A_VALUE } from "./a"; A_VALUE // Using quick fix here Actu...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/18272
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QuickFix error: add missing import with already reexported variable","articleBody":"**TypeScript Version:** nightly (2.6.0-dev.20170904)\r\n\r\n**Code**\r\n\r\n**./a.ts**\r\n```ts\r\nexport const A_VALUE: string = \"ASTRING\";\r\n```\r\n**./b.ts**\r\n```ts\r\nexport { A_VALUE } from \"./a\";\r\n\r\nA_VALUE // Using quick fix here\r\n```\r\n\r\n\r\n**Actual behavior:**\r\n```\r\n'getCodeFixes' request failed with error.\r\nError processing request. Cannot read property 'kind' of undefined\r\nTypeError: Cannot read property 'kind' of undefined\r\n at getCodeActionsForExistingImport (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:74051:40)\r\n at getCodeActionForImport (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:74039:28)\r\n at Object.getImportCodeActions [as getCodeActions] (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:73995:60)\r\n at d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:73159:33\r\n at Object.forEach (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:1292:30)\r\n at Object.getFixes (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:73158:16)\r\n at d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:77017:35\r\n at Object.flatMap (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:1524:25)\r\n at Object.getCodeFixesAtPosition (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:77015:23)\r\n at IOSession.Session.getCodeFixes (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:83053:64)\r\n at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:81971:61)\r\n at d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:83197:88\r\n at IOSession.Session.executeWithRequestId (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:83188:28)\r\n at IOSession.Session.executeCommand (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:83197:33)\r\n at IOSession.Session.onMessage (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:83217:35)\r\n at Interface.\u003canonymous> (d:\\test\\ts-error5\\node_modules\\typescript\\lib\\tsserver.js:84307:27)\r\n at emitOne (events.js:96:13)\r\n at Interface.emit (events.js:188:7)\r\n at Interface._onLine (readline.js:247:10)\r\n at Interface.\u003canonymous> (readline.js:384:12)\r\n at Array.forEach (native)\r\n at Interface._normalWrite (readline.js:383:11)\r\n at Socket.ondata (readline.js:107:10)\r\n at emitOne (events.js:96:13)\r\n at Socket.emit (events.js:188:7)\r\n at readableAddChunk (_stream_readable.js:176:18)\r\n at Socket.Readable.push (_stream_readable.js:134:10)\r\n at Pipe.onread (net.js:551:20)\r\n```","author":{"url":"https://github.com/GiedriusGrabauskas","@type":"Person","name":"GiedriusGrabauskas"},"datePublished":"2017-09-06T12:42:48Z","url":"https://github.com/microsoft/TypeScript/issues/18272"}
| 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:9a94ec51-61d6-3330-9787-22da82a7a224 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B82E:215B92:BA71BB:F95315:6B00F6B0 |
| html-safe-nonce | 28e359297bd14271881fd245372b64e0ec9b2f622224099ff180db38abbf58fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODJFOjIxNUI5MjpCQTcxQkI6Rjk1MzE1OjZCMDBGNkIwIiwidmlzaXRvcl9pZCI6Ijg1MzY2NTM0MzI4MzkyNzIxMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cb7908fc5bb002270a39ebd92afee9f17e5194d45f630aba3fd5c092dd67b6af |
| hovercard-subject-tag | issue:255590017 |
| 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/18272/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a9efbda5966d3100a7958485ae0dec1c9475c638386fdaecca82ce4a324a83a/microsoft/TypeScript/issues/18272 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a9efbda5966d3100a7958485ae0dec1c9475c638386fdaecca82ce4a324a83a/microsoft/TypeScript/issues/18272 |
| og:image:alt | TypeScript Version: nightly (2.6.0-dev.20170904) Code ./a.ts export const A_VALUE: string = "ASTRING"; ./b.ts export { A_VALUE } from "./a"; A_VALUE // Using quick fix here Actual behavior: 'getCod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GiedriusGrabauskas |
| 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