Title: XXX has or is using name 'Foo' from external module "../bar" but cannot be named · Issue #9944 · microsoft/TypeScript · GitHub
Open Graph Title: XXX has or is using name 'Foo' from external module "../bar" but cannot be named · Issue #9944 · microsoft/TypeScript
X Title: XXX has or is using name 'Foo' from external module "../bar" but cannot be named · Issue #9944 · microsoft/TypeScript
Description: TypeScript Version: 2.0.0 npm init npm install clime --save tsconfig.json { "compilerOptions": { "target": "es6", "module": "commonjs", "emitDecoratorMetadata": true, "experimentalDecorators": true, "noEmitOnError": true, "noImplicitAny"...
Open Graph Description: TypeScript Version: 2.0.0 npm init npm install clime --save tsconfig.json { "compilerOptions": { "target": "es6", "module": "commonjs", "emitDecoratorMetadata": true, "experimentalDecorators": true...
X Description: TypeScript Version: 2.0.0 npm init npm install clime --save tsconfig.json { "compilerOptions": { "target": "es6", "module": "commonjs", "emitD...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/9944
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"XXX has or is using name 'Foo' from external module \"../bar\" but cannot be named","articleBody":"**TypeScript Version:** 2.0.0\n\n``` sh\nnpm init\nnpm install clime --save\n```\n\n**tsconfig.json**\n\n``` json\n{\n \"compilerOptions\": {\n \"target\": \"es6\",\n \"module\": \"commonjs\",\n \"emitDecoratorMetadata\": true,\n \"experimentalDecorators\": true,\n \"noEmitOnError\": true,\n \"noImplicitAny\": true,\n \"noImplicitReturns\": true,\n \"noImplicitThis\": true,\n \"strictNullChecks\": true,\n \"declaration\": true,\n \"sourceMap\": true,\n \"rootDir\": \"src\",\n \"outDir\": \"bld\"\n },\n \"exclude\": [\n \"node_modules\"\n ]\n}\n```\n\n**src/cli.ts**\n\n``` ts\n#!/usr/bin/env node\n\nimport * as Path from 'path';\nimport { CLI, Shim } from 'clime';\n\nlet cli = new CLI('henge', Path.join(__dirname, 'commands'));\n\n// This is okay.\nexport default cli;\n\n// This gives errors:\n// TS4023: Exported variable 'foo' has or is using name 'Promise' from external module \"C:/Projects/clime/node_modules/thenfail/bld/promise\" but cannot be named.\n// TS4023: Exported variable 'foo' has or is using name 'Printable' from external module \"C:/Projects/clime/bld/core/object\" but cannot be named.\nlet foo = cli.execute([]);\nexport { foo };\n```\n\nIt seems that if I import `Printable` from `clime`, the second error would go away, but I cannot import `Promise` from the dependency of `clime`.\n\nIs this expected behavior or a bug?\n","author":{"url":"https://github.com/vilicvane","@type":"Person","name":"vilicvane"},"datePublished":"2016-07-26T02:20:43Z","url":"https://github.com/microsoft/TypeScript/issues/9944"}
| 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:da853574-bec5-4734-11e9-674ad12b12bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E132:D51C9:39ED087:4C494A6:6AFA1591 |
| html-safe-nonce | c67d7424ff6dcdea1dd019a6999f65f60f2c02a25d016aed1c569d14564d8b7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMTMyOkQ1MUM5OjM5RUQwODc6NEM0OTRBNjo2QUZBMTU5MSIsInZpc2l0b3JfaWQiOiIyMzU2NTI3MTExNTg3ODEzMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1a0e785732ebd98623dc0b38640038aef5fc63f74485d5f0e8ceceab2a0ba06a |
| hovercard-subject-tag | issue:167507078 |
| 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/9944/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b231f5996bcd6744555cc03934b744d31107c170b6b79070f9895d8f7ca5cc7/microsoft/TypeScript/issues/9944 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b231f5996bcd6744555cc03934b744d31107c170b6b79070f9895d8f7ca5cc7/microsoft/TypeScript/issues/9944 |
| og:image:alt | TypeScript Version: 2.0.0 npm init npm install clime --save tsconfig.json { "compilerOptions": { "target": "es6", "module": "commonjs", "emitDecoratorMetadata": true, "experimentalDecorators": true... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vilicvane |
| 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