Title: Out of memory error when using ImmutableJS · Issue #17070 · microsoft/TypeScript · GitHub
Open Graph Title: Out of memory error when using ImmutableJS · Issue #17070 · microsoft/TypeScript
X Title: Out of memory error when using ImmutableJS · Issue #17070 · microsoft/TypeScript
Description: Simply importing the type definitions of ImmutableJS is enough to crash the compiler with an out of memory exception. TypeScript Version: 2.4.1 index.ts import 'immutable'; package.json { "private": true, "name": "scratch", "version": "0...
Open Graph Description: Simply importing the type definitions of ImmutableJS is enough to crash the compiler with an out of memory exception. TypeScript Version: 2.4.1 index.ts import 'immutable'; package.json { "private"...
X Description: Simply importing the type definitions of ImmutableJS is enough to crash the compiler with an out of memory exception. TypeScript Version: 2.4.1 index.ts import 'immutable'; package.json { &...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/17070
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Out of memory error when using ImmutableJS","articleBody":"Simply importing the type definitions of ImmutableJS is enough to crash the compiler with an out of memory exception.\r\n\r\n**TypeScript Version:** 2.4.1\r\n\r\n**index.ts**\r\n```ts\r\nimport 'immutable';\r\n```\r\n\r\n**package.json**\r\n```json\r\n{\r\n \"private\": true,\r\n \"name\": \"scratch\",\r\n \"version\": \"0.0.1\",\r\n \"dependencies\": {\r\n \"immutable\": \"4.0.0-rc.2\"\r\n },\r\n \"devDependencies\": {\r\n \"typescript\": \"^2.4.1\"\r\n },\r\n \"scripts\": {\r\n \"build\": \"tsc\"\r\n }\r\n}\r\n\r\n```\r\n\r\n**tsconfig.json**\r\n```json\r\n{\r\n \"compilerOptions\": {\r\n \"declaration\": true,\r\n \"noImplicitAny\": true,\r\n \"noEmitOnError\": true,\r\n \"noUnusedLocals\": true,\r\n \"module\": \"commonjs\",\r\n \"moduleResolution\": \"node\",\r\n \"target\": \"ES5\",\r\n \"lib\": [\"ES5\"],\r\n \"types\": []\r\n }\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\n`npm run build` should execute cleanly.\r\n\r\n**Actual behavior:**\r\n\r\nOut of memory error:\r\n```\r\nE:\\Development\\sccolbert\\scratch>npm run build\r\n\r\n> scratch@0.0.1 build E:\\Development\\sccolbert\\scratch\r\n> tsc\r\n\r\n\r\n\u003c--- Last few GCs --->\r\n\r\n 24342 ms: Mark-sweep 1373.9 (1434.6) -> 1373.9 (1434.6) MB, 1130.9 / 0.0 ms [allocation failure] [GC in old space requested].\r\n 25469 ms: Mark-sweep 1373.9 (1434.6) -> 1373.7 (1434.6) MB, 1126.1 / 0.0 ms [allocation failure] [GC in old space requested].\r\n 26600 ms: Mark-sweep 1373.7 (1434.6) -> 1374.9 (1418.6) MB, 1131.4 / 0.0 ms [last resort gc].\r\n 27744 ms: Mark-sweep 1374.9 (1418.6) -> 1376.0 (1418.6) MB, 1143.2 / 0.0 ms [last resort gc].\r\n\r\n\r\n\u003c--- JS stacktrace --->\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 00000294DA0CFB61 \u003cJS Object>\r\n 1: getTypeOfSymbol [E:\\Development\\sccolbert\\scratch\\node_modules\\typescript\\lib\\tsc.js:~25490] [pc=000003AB5C58E243] (this=000000CA3E8662F9 \u003cJS Global Object>,symbol=000001704DD798E1 \u003ca Symbol with map 0000003478D59B29>)\r\n 2: forEachMatchingParameterType [E:\\Development\\sccolbert\\scratch\\node_modules\\typescript\\lib\\tsc.js:~30013] [pc=000003AB5C4F801C] (this=000000CA3E8662F9 \u003cJS Global ...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n```","author":{"url":"https://github.com/sccolbert","@type":"Person","name":"sccolbert"},"datePublished":"2017-07-10T19:45:18Z","url":"https://github.com/microsoft/TypeScript/issues/17070"}
| 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:25ab044a-3bd3-ec85-1493-878b55f9d08f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85BC:24ACB9:F6A3A8:145503F:6B01021A |
| html-safe-nonce | dd643c80009ea172af67506f537b560b903f10d944132851b9c45199103cf805 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUJDOjI0QUNCOTpGNkEzQTg6MTQ1NTAzRjo2QjAxMDIxQSIsInZpc2l0b3JfaWQiOiI3NTI3MDA5NTMzMjYxMDU0NDkwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5876140a2ee36873269b6319805ec58232989076d8bdf0d470e004ed45541a16 |
| hovercard-subject-tag | issue:241825348 |
| 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/17070/issue_layout |
| twitter:image | https://opengraph.githubassets.com/409eee90af267346bf39371b863df8844a13a297cb05d821719fc6a7f9ff0437/microsoft/TypeScript/issues/17070 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/409eee90af267346bf39371b863df8844a13a297cb05d821719fc6a7f9ff0437/microsoft/TypeScript/issues/17070 |
| og:image:alt | Simply importing the type definitions of ImmutableJS is enough to crash the compiler with an out of memory exception. TypeScript Version: 2.4.1 index.ts import 'immutable'; package.json { "private"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sccolbert |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width