Title: Exported variable 'X' has or is using name 'Y' from external module "Z" but cannot be named. · Issue #20657 · microsoft/TypeScript · GitHub
Open Graph Title: Exported variable 'X' has or is using name 'Y' from external module "Z" but cannot be named. · Issue #20657 · microsoft/TypeScript
X Title: Exported variable 'X' has or is using name 'Y' from external module "Z" but cannot be named. · Issue #20657 · microsoft/TypeScript
Description: TypeScript Version: 2.7.0-dev.20171212 Code // thingA.ts export interface ThingA { } // thingB.ts export interface ThingB { } // things.ts export { ThingA } from "./thingA"; export * from "./thingB"; // index.ts import * as things from "...
Open Graph Description: TypeScript Version: 2.7.0-dev.20171212 Code // thingA.ts export interface ThingA { } // thingB.ts export interface ThingB { } // things.ts export { ThingA } from "./thingA"; export * from "./thingB...
X Description: TypeScript Version: 2.7.0-dev.20171212 Code // thingA.ts export interface ThingA { } // thingB.ts export interface ThingB { } // things.ts export { ThingA } from "./thingA"; export * from...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/20657
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Exported variable 'X' has or is using name 'Y' from external module \"Z\" but cannot be named.","articleBody":"**TypeScript Version:** 2.7.0-dev.20171212\r\n\r\n**Code**\r\n\r\n```ts\r\n// thingA.ts\r\nexport interface ThingA { }\r\n\r\n// thingB.ts\r\nexport interface ThingB { }\r\n\r\n// things.ts\r\nexport { ThingA } from \"./thingA\";\r\nexport * from \"./thingB\";\r\n\r\n// index.ts\r\nimport * as things from \"./things\";\r\nexport const thing1 = (param: things.ThingA) => null;\r\nexport const thing2 = (param: things.ThingB) => null;\r\n\r\n// tsconfig.json\r\n{\r\n \"compilerOptions\": {\r\n \"declaration\": true\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nProject compiles without errors.\r\n\r\n**Actual behavior:**\r\n\r\n```\r\nindex.ts(3,14): error TS4023: Exported variable 'thing2' has or is using name 'ThingB' from external module \"/Users/rob/Projects/tsctest/thingB\" but cannot be named.\r\n```\r\n\r\n**Additional information:**\r\n\r\n@weswigham fixed the following very similar issues in #19852:\r\n\r\n* #5938\r\n* #8612\r\n* #19825\r\n\r\nIn fact, before his fix, line 2 of index.ts would also fail.\r\n\r\nI've pushed this repro as a project here: https://github.com/robyoder/tsctest","author":{"url":"https://github.com/robyoder","@type":"Person","name":"robyoder"},"datePublished":"2017-12-12T22:04:33Z","url":"https://github.com/microsoft/TypeScript/issues/20657"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:a79197ff-2fe5-3f08-f38c-e13584c608bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A084:AC868:3FD29A9:542B8CF:6AFA3B21 |
| html-safe-nonce | 851da3382da7b36ba27a47208623386aa7adabd60e9cde5a02475fbcfd081fdf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDg0OkFDODY4OjNGRDI5QTk6NTQyQjhDRjo2QUZBM0IyMSIsInZpc2l0b3JfaWQiOiI3NjQyMTcyMzUxMDg5MDk3NTA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 8f6ba4b800f7b8cd430c40edf993d01e71eb613aadead4fe8b83425b4704559d |
| hovercard-subject-tag | issue:281553618 |
| 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/20657/issue_layout |
| twitter:image | https://opengraph.githubassets.com/59b4aef1b0220809c5e4f11996b1e9e1b370d49269aa27de31b5ae28f06924c8/microsoft/TypeScript/issues/20657 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/59b4aef1b0220809c5e4f11996b1e9e1b370d49269aa27de31b5ae28f06924c8/microsoft/TypeScript/issues/20657 |
| og:image:alt | TypeScript Version: 2.7.0-dev.20171212 Code // thingA.ts export interface ThingA { } // thingB.ts export interface ThingB { } // things.ts export { ThingA } from "./thingA"; export * from "./thingB... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | robyoder |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| 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 | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width