Title: tsc generating TS5055 error when generating declaration files · Issue #6046 · microsoft/TypeScript · GitHub
Open Graph Title: tsc generating TS5055 error when generating declaration files · Issue #6046 · microsoft/TypeScript
X Title: tsc generating TS5055 error when generating declaration files · Issue #6046 · microsoft/TypeScript
Description: I'm consistently getting the following error when compiling any .ts file: error TS5055: Cannot write file 'dist/[source-file-name].d.ts' because it would overwrite input file. The compiler should be willing to overwrite the declarations ...
Open Graph Description: I'm consistently getting the following error when compiling any .ts file: error TS5055: Cannot write file 'dist/[source-file-name].d.ts' because it would overwrite input file. The compiler should b...
X Description: I'm consistently getting the following error when compiling any .ts file: error TS5055: Cannot write file 'dist/[source-file-name].d.ts' because it would overwrite input file. The compi...
Mail addresses
notifications@github.com
notifications@github.com
notifications@github.com
Opengraph URL: https://github.com/microsoft/TypeScript/issues/6046
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tsc generating TS5055 error when generating declaration files","articleBody":"I'm consistently getting the following error when compiling any .ts file:\nerror TS5055: Cannot write file 'dist/[source-file-name].d.ts' because it would overwrite input file.\n\nThe compiler should be willing to overwrite the declarations files any time it recompiles. There are no permissions issues and this seems to be a new problem introduced recently since I moved from a stable ts1.7 release to using typescript@next releases (I'm currently on last night's - i.e. Version 1.8.0-dev.20151210).\n\nI'm using tsc --watch with the following tsconfig.json file:\n\n``` json\n{\n \"compilerOptions\": {\n \"target\": \"es6\",\n \"moduleResolution\": \"node\",\n \"module\": \"commonjs\",\n \"preserveConstEnums\": true,\n \"declaration\": true,\n \"noImplicitAny\": false,\n \"removeComments\": true,\n \"noLib\": false,\n \"sourceMap\": false,\n \"experimentalDecorators\": true,\n \"emitDecoratorMetadata\": true,\n \"outDir\": \"./dist\"\n },\n \"exclude\": [\"node_modules\", \"jspm_packages\"],\n \"filesGlob\": [\n \"./src/**/*.ts\"\n ]\n}\n```\n\n(NOTE - the filesGlob above is not appearing correctly due to github reformatting..... it is actually:\n./src/[asterix][asterix]/[asterix].ts\njust in case you thought I have a bad tsconfig)\n\nThank you!\n","author":{"url":"https://github.com/fuzing","@type":"Person","name":"fuzing"},"datePublished":"2015-12-10T23:22:09Z","url":"https://github.com/microsoft/TypeScript/issues/6046"}
| 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:020f5d2b-ad87-2116-5c16-f859219bccde |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B794:2D02CB:16C524:1E287D:6B0162ED |
| html-safe-nonce | e39e39d26fc0ae537d9b0f1ab4eaab379add8dd480dd5a01cd531516f0eed4af |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNzk0OjJEMDJDQjoxNkM1MjQ6MUUyODdEOjZCMDE2MkVEIiwidmlzaXRvcl9pZCI6IjIwMzU2MzM5MDk2MDkzNTgwNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 10f50ddcbda262009c5cd715bb3447cf86d350d0d95df22150f319cc77112de8 |
| hovercard-subject-tag | issue:121600965 |
| 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/6046/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f81eb504bebe7fdb7e775c2bb6a06f957b4311a21753897eb57e86bcce42cd34/microsoft/TypeScript/issues/6046 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f81eb504bebe7fdb7e775c2bb6a06f957b4311a21753897eb57e86bcce42cd34/microsoft/TypeScript/issues/6046 |
| og:image:alt | I'm consistently getting the following error when compiling any .ts file: error TS5055: Cannot write file 'dist/[source-file-name].d.ts' because it would overwrite input file. The compiler should b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fuzing |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width