Title: transpile doesn't allow backslashes in filename · Issue #4608 · microsoft/TypeScript · GitHub
Open Graph Title: transpile doesn't allow backslashes in filename · Issue #4608 · microsoft/TypeScript
X Title: transpile doesn't allow backslashes in filename · Issue #4608 · microsoft/TypeScript
Description: ts.transpile('var x;', {}, 'a\\b.ts'); This gives an error: throw new Error("Debug Failure. False expression: " + (message ^ Error: Debug Failure. False expression: Output generation failed at Object.assert ([..]/node_modules/typescript/...
Open Graph Description: ts.transpile('var x;', {}, 'a\\b.ts'); This gives an error: throw new Error("Debug Failure. False expression: " + (message ^ Error: Debug Failure. False expression: Output generation failed at Obje...
X Description: ts.transpile('var x;', {}, 'a\\b.ts'); This gives an error: throw new Error("Debug Failure. False expression: " + (message ^ Error: Debug Failure. False expression: Output...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4608
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"transpile doesn't allow backslashes in filename","articleBody":"``` typescript\nts.transpile('var x;', {}, 'a\\\\b.ts');\n```\n\nThis gives an error:\n\n```\n throw new Error(\"Debug Failure. False expression: \" + (message\n ^\nError: Debug Failure. False expression: Output generation failed\n at Object.assert ([..]/node_modules/typescript/lib/typescript.js:1573:23)\n at transpileModule ([..]/node_modules/typescript/lib/typescript.js:42895:18)\n at Object.transpile ([..]/node_modules/typescript/lib/typescript.js:42903:22)\n at Object.\u003canonymous> ([..]/api-test.js:16:4)\n at Module._compile (module.js:460:26)\n at Object.Module._extensions..js (module.js:478:10)\n at Module.load (module.js:355:32)\n at Function.Module._load (module.js:310:12)\n at Function.Module.runMain (module.js:501:10)\n at startup (node.js:129:16)\n```\n\nUsing forward slashes does work.\nDiscovered by @arogg at ivogabe/gulp-typescript#199. I've fixed it in gulp-typescript by replacing all backward slashes with forward ones, but I think it should be fixed here too.\n","author":{"url":"https://github.com/ivogabe","@type":"Person","name":"ivogabe"},"datePublished":"2015-09-02T18:51:33Z","url":"https://github.com/microsoft/TypeScript/issues/4608"}
| 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:82774e78-cb56-3ee3-2a98-e8e57ef7ce3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E8E:1F44:3823A3:49B316:6B00EA00 |
| html-safe-nonce | 51e13b3a0ee52039b7c434c22e40e847b1ea9591b29a60e466030427d79946c7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RThFOjFGNDQ6MzgyM0EzOjQ5QjMxNjo2QjAwRUEwMCIsInZpc2l0b3JfaWQiOiI1NTg5MDYwNDgxODg2MjUxNTIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 17008dc4e402a1cd451140df7ddd7dce51e2be69fcdf9cd78226e494dc579d1e |
| hovercard-subject-tag | issue:104548102 |
| 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/4608/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6bfcf50bc8cf823ca6d328e373515d915d62d7473233b53cf3e3640b4f091c14/microsoft/TypeScript/issues/4608 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6bfcf50bc8cf823ca6d328e373515d915d62d7473233b53cf3e3640b4f091c14/microsoft/TypeScript/issues/4608 |
| og:image:alt | ts.transpile('var x;', {}, 'a\\b.ts'); This gives an error: throw new Error("Debug Failure. False expression: " + (message ^ Error: Debug Failure. False expression: Output generation failed at Obje... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ivogabe |
| 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