Title: Reflect-metadata broken in 1.6.2: TS2306: File 'node_modules/reflect-metadata/reflect-metadata.d.ts' is not a module. · Issue #4877 · microsoft/TypeScript · GitHub
Open Graph Title: Reflect-metadata broken in 1.6.2: TS2306: File 'node_modules/reflect-metadata/reflect-metadata.d.ts' is not a module. · Issue #4877 · microsoft/TypeScript
X Title: Reflect-metadata broken in 1.6.2: TS2306: File 'node_modules/reflect-metadata/reflect-metadata.d.ts' is not a module. · Issue #4877 · microsoft/TypeScript
Description: To reproduce: Update to Typescript v1.6.2 and reflect-metadata v0.1.1 Compile this: ///
Open Graph Description: To reproduce: Update to Typescript v1.6.2 and reflect-metadata v0.1.1 Compile this: ///
X Description: To reproduce: Update to Typescript v1.6.2 and reflect-metadata v0.1.1 Compile this: /// <reference path="node_modules/reflect-metadata/reflect-metadata.d.ts" /> import 'reflect-...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4877
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Reflect-metadata broken in 1.6.2: TS2306: File 'node_modules/reflect-metadata/reflect-metadata.d.ts' is not a module.","articleBody":"To reproduce:\n1. Update to Typescript v1.6.2 and reflect-metadata v0.1.1\n2. Compile this:\n\n```\n/// \u003creference path=\"node_modules/reflect-metadata/reflect-metadata.d.ts\" />\nimport 'reflect-metadata';\n```\n\n**Expected**: compiles just fine\n**Actual**: compile error:\n\n```\nindex.ts(3,8): error TS2306: File 'node_modules/reflect-metadata/reflect-metadata.d.ts' is not a module.\n```\n\nI created a [git repo](https://github.com/mattyork/TypescriptReflectMetadataBug) to demonstrate:\n\n```\ngit clone https://github.com/mattyork/TypescriptReflectMetadataBug.git\ncd TypescriptReflectMetadataBug\nnpm install\n./node_modules/.bin/tsc\n```\n\nIf I delete the [`typings` field in package.json](https://github.com/rbuckton/ReflectDecorators/blob/master/package.json#L6) this error goes away. What is this `typings` field for and why is it causing this bug?\n","author":{"url":"https://github.com/mattyork","@type":"Person","name":"mattyork"},"datePublished":"2015-09-19T23:34:44Z","url":"https://github.com/microsoft/TypeScript/issues/4877"}
| 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:898a7205-a8c8-1660-9b6a-f802f12b261e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 815C:17FB7:1A7E01:21604D:6B00FB74 |
| html-safe-nonce | 803818bccc3f8f208a67005f4592f8dc8538d7fdbca3fedc8bc4aff0c6351d35 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTVDOjE3RkI3OjFBN0UwMToyMTYwNEQ6NkIwMEZCNzQiLCJ2aXNpdG9yX2lkIjoiODUxOTk0NjQyNjY2OTY2MTA0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f53d899e34b2f7110d2c2e464bf776d40326f9c5d36bccaa4daeb984641e9f9b |
| hovercard-subject-tag | issue:107362498 |
| 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/4877/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1056043a14664d4f9fdb79e31923c353fabe5c10a9d774fc9512fe405d889a1a/microsoft/TypeScript/issues/4877 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1056043a14664d4f9fdb79e31923c353fabe5c10a9d774fc9512fe405d889a1a/microsoft/TypeScript/issues/4877 |
| og:image:alt | To reproduce: Update to Typescript v1.6.2 and reflect-metadata v0.1.1 Compile this: /// |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mattyork |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width