Title: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory · Issue #16165 · microsoft/TypeScript · GitHub
Open Graph Title: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory · Issue #16165 · microsoft/TypeScript
X Title: FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory · Issue #16165 · microsoft/TypeScript
Description: TypeScript Version: 2.3.3 AND 2.3.4. I am trying to create a definition file for promise-throttle, it has the following API: var PromiseThrottle = require('promise-throttle'); var promiseThrottle = new PromiseThrottle({}); ... Here is th...
Open Graph Description: TypeScript Version: 2.3.3 AND 2.3.4. I am trying to create a definition file for promise-throttle, it has the following API: var PromiseThrottle = require('promise-throttle'); var promiseThrottle =...
X Description: TypeScript Version: 2.3.3 AND 2.3.4. I am trying to create a definition file for promise-throttle, it has the following API: var PromiseThrottle = require('promise-throttle'); var promiseTh...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/16165
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory","articleBody":"**TypeScript Version:** 2.3.3 AND 2.3.4.\r\n\r\nI am trying to create a definition file for [promise-throttle](https://www.npmjs.com/package/promise-throttle), it has the following API:\r\n```js\r\nvar PromiseThrottle = require('promise-throttle');\r\n\r\nvar promiseThrottle = new PromiseThrottle({});\r\n...\r\n```\r\n\r\nHere is the setup:\r\n\r\n`src/test.ts`\r\n```ts\r\nimport PromiseThrottle from 'promise-throttle';\r\n\r\n...\r\n```\r\n\r\n`types/promise-throttle/index.d.ts`\r\n```ts\r\ninterface PromiseThrottleOptions {\r\n\trequestsPerSecond: number;\r\n\tpromiseImplementation?: any;\r\n}\r\n\r\nexport default class PromiseThrottle {\r\n\tconstructor(options: PromiseThrottleOptions);\r\n\tadd\u003cT>(promise: () => Promise\u003cT>): Promise\u003cT>;\r\n\taddAll\u003cT>(promises: ReadonlyArray\u003c() => Promise\u003cT>>): Promise\u003cT>;\r\n\tdequeue(): void;\r\n}\r\n```\r\n\r\n`tsconfig.json`\r\n```json\r\n{\r\n\t\"compilerOptions\": {\r\n\t\t\"module\": \"commonjs\",\r\n\t\t\"target\": \"es2016\",\t\r\n\t\t\"outDir\": \"dist\",\r\n\t\t\"baseUrl\": \"./\",\r\n\t\t\"paths\": {\r\n\t\t\t\"*\": [\"types/*/index.d.ts\"]\r\n\t\t},\r\n\t\t\"alwaysStrict\": true,\r\n\t\t\"forceConsistentCasingInFileNames\": true,\r\n\t\t\"noFallthroughCasesInSwitch\": true,\r\n\t\t\"noImplicitAny\": false,\r\n\t\t\"noImplicitReturns\": true,\r\n\t\t\"noImplicitThis\": true,\r\n\t\t\"noUnusedParameters\": false,\r\n\t\t\"noUnusedLocals\": true,\r\n\t\t\"skipLibCheck\": false,\r\n\t\t\"sourceMap\": true,\r\n\t\t\"strictNullChecks\": true,\r\n\t\t\"allowSyntheticDefaultImports\": true\r\n\t},\r\n\t\"include\": [\r\n\t\t\"src/**/*.ts\"\r\n\t]\r\n}\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nTSC to compile the code fine.\r\n\r\n**Actual behavior:**\r\n\r\n`\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\nnpm ERR! Windows_NT 10.0.15063\r\nnpm ERR! argv \"C:\\\\Program Files\\\\nodejs\\\\node.exe\" \"C:\\\\Program Files\\\\nodejs\\\\node_modules\\\\npm\\\\bin\\\\npm-cli.js\" \"run\" \"build\"\r\nnpm ERR! node v7.10.0\r\nnpm ERR! npm v4.2.0\r\nnpm ERR! code ELIFECYCLE\r\nnpm ERR! errno 3\r\nnpm ERR! \u003c>@1.0.0 build: `tsc`\r\nnpm ERR! Exit status 3\r\nnpm ERR! \r\nnpm ERR! Failed at the \u003c>@1.0.0 build script 'tsc'.\r\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\r\nnpm ERR! If you do, this is most likely a problem with the \u003c> package,\r\nnpm ERR! not with npm itself.\r\nnpm ERR! Tell the author that this fails on your system:\r\nnpm ERR! tsc\r\nnpm ERR! You can get information on how to open an issue for this project with:\r\nnpm ERR! npm bugs \u003c>\r\nnpm ERR! Or if that isn't available, you can get their info via:\r\nnpm ERR! npm owner ls \u003c>\r\nnpm ERR! There is likely additional logging output above.\r\nnpm ERR! Please include the following file with any support request:\r\nnpm ERR! %AppData%\\Roaming\\npm-cache\\_logs\\2017-05-31T08_01_13_818Z-debug.log\r\n`\r\n\r\nSeems to be similar to [this](https://github.com/Microsoft/TypeScript/issues/15864) issue?","author":{"url":"https://github.com/SeanSobey","@type":"Person","name":"SeanSobey"},"datePublished":"2017-05-31T08:03:02Z","url":"https://github.com/microsoft/TypeScript/issues/16165"}
| 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:0ef217a7-f658-13b0-5a76-7536db47a52a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F86:2C4BED:2AEAE8B:36849ED:6B01ABA7 |
| html-safe-nonce | 820654aca4f36788b2db719af191f22719131e31853968ad884bb6f905c3e327 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Rjg2OjJDNEJFRDoyQUVBRThCOjM2ODQ5RUQ6NkIwMUFCQTciLCJ2aXNpdG9yX2lkIjoiNjQ4MTQ0MTQwNjIzMjY2OTA5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b0e586185d4055c04bf907e0ac7dbc6ea1fd9c8e130fa68a34b8f71b01b7482 |
| hovercard-subject-tag | issue:232485261 |
| 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/16165/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1683c7976b00de5fee243ba115eef87c29747a560c1b2785b89d52e484c5160c/microsoft/TypeScript/issues/16165 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1683c7976b00de5fee243ba115eef87c29747a560c1b2785b89d52e484c5160c/microsoft/TypeScript/issues/16165 |
| og:image:alt | TypeScript Version: 2.3.3 AND 2.3.4. I am trying to create a definition file for promise-throttle, it has the following API: var PromiseThrottle = require('promise-throttle'); var promiseThrottle =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SeanSobey |
| 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