Title: Should `tsc file.js`build a file with the "compilerOptions" in TypeScript's config. Or should it compile a file and ignore the config? · Issue #29241 · microsoft/TypeScript · GitHub
Open Graph Title: Should `tsc file.js`build a file with the "compilerOptions" in TypeScript's config. Or should it compile a file and ignore the config? · Issue #29241 · microsoft/TypeScript
X Title: Should `tsc file.js`build a file with the "compilerOptions" in TypeScript's config. Or should it compile a file and ignore the config? · Issue #29241 · microsoft/TypeScript
Description: With Node v11.6.0, and TSC, 3.2.2, I am getting node_modules/rxjs/internal/Observable.d.ts:82:59 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing ...
Open Graph Description: With Node v11.6.0, and TSC, 3.2.2, I am getting node_modules/rxjs/internal/Observable.d.ts:82:59 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to c...
X Description: With Node v11.6.0, and TSC, 3.2.2, I am getting node_modules/rxjs/internal/Observable.d.ts:82:59 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you n...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/29241
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Should `tsc file.js`build a file with the \"compilerOptions\" in TypeScript's config. Or should it compile a file and ignore the config?","articleBody":"With Node v11.6.0, and TSC, 3.2.2, I am getting\r\n\r\n```\r\nnode_modules/rxjs/internal/Observable.d.ts:82:59 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the `lib` compiler option to es2015 or later. \r\n\r\n82 toPromise\u003cT>(this: Observable\u003cT>, PromiseCtor: typeof Promise): Promise\u003cT>; \r\n ~~~~~~~\r\n\r\n\r\nFound 1 error.\r\n\r\n```\r\n\r\nWhen I run \r\n\r\n type P = typeof Promise;\r\n\r\nUsing `@types/node`\r\n\r\nThis is a bug push up from rxjs https://github.com/ReactiveX/rxjs/issues/4448\r\nYou can see the issue documented at https://stackoverflow.com/questions/54014405/ts2585-promise-only-refers-to-a-type-but-is-being-used-as-a-value-here","author":{"url":"https://github.com/EvanCarroll","@type":"Person","name":"EvanCarroll"},"datePublished":"2019-01-03T01:33:43Z","url":"https://github.com/microsoft/TypeScript/issues/29241"}
| 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:84542c6b-3747-d947-c34d-cb7c806fc9f9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C140:1C14E0:28D733:396469:6B046A6C |
| html-safe-nonce | 9c2cdc15c6a9d2a6a842e63ce6ca63fc8ce85149b7a136218e085255c0e6aa6b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTQwOjFDMTRFMDoyOEQ3MzM6Mzk2NDY5OjZCMDQ2QTZDIiwidmlzaXRvcl9pZCI6IjM2ODk2ODg0MjczMzIzOTc2NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24992ffdfd60156a495183a1aa40ce763fe3f0d548a567b68f9aa533d7aceaef |
| hovercard-subject-tag | issue:395433241 |
| 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/29241/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1e316aaf8dc35cd38eb65037d8e55371ccde16a84847498a04095ae6dc55d7f8/microsoft/TypeScript/issues/29241 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1e316aaf8dc35cd38eb65037d8e55371ccde16a84847498a04095ae6dc55d7f8/microsoft/TypeScript/issues/29241 |
| og:image:alt | With Node v11.6.0, and TSC, 3.2.2, I am getting node_modules/rxjs/internal/Observable.d.ts:82:59 - error TS2585: 'Promise' only refers to a type, but is being used as a value here. Do you need to c... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | EvanCarroll |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width