Title: JS: Maximum call stack size exceeded at getTypeFromJSDocValueReference in 3.7.2 · Issue #34926 · microsoft/TypeScript · GitHub
Open Graph Title: JS: Maximum call stack size exceeded at getTypeFromJSDocValueReference in 3.7.2 · Issue #34926 · microsoft/TypeScript
X Title: JS: Maximum call stack size exceeded at getTypeFromJSDocValueReference in 3.7.2 · Issue #34926 · microsoft/TypeScript
Description: TypeScript Version: 3.7.2, 3.8.0-dev.20191105 Search Terms: JSDoc Type reference Maximum call stack size exceeded getTypeFromJSDocValueReference Code Unfortunately I don't have a small case test case yet. The easiest steps I have so far:...
Open Graph Description: TypeScript Version: 3.7.2, 3.8.0-dev.20191105 Search Terms: JSDoc Type reference Maximum call stack size exceeded getTypeFromJSDocValueReference Code Unfortunately I don't have a small case test ca...
X Description: TypeScript Version: 3.7.2, 3.8.0-dev.20191105 Search Terms: JSDoc Type reference Maximum call stack size exceeded getTypeFromJSDocValueReference Code Unfortunately I don't have a small case tes...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/34926
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"JS: Maximum call stack size exceeded at getTypeFromJSDocValueReference in 3.7.2","articleBody":"\u003c!--\r\nPlease try to reproduce the issue with the latest published version. It may have already been fixed.\r\nFor npm: `typescript@next`\r\nThis is also the 'Nightly' version in the playground: http://www.typescriptlang.org/play/?ts=Nightly\r\n-->\r\n**TypeScript Version:** 3.7.2, 3.8.0-dev.20191105\r\n\r\n\u003c!-- Search terms you tried before logging this (so others can find this issue more easily) -->\r\n**Search Terms:**\r\nJSDoc Type reference Maximum call stack size exceeded getTypeFromJSDocValueReference\r\n\r\n**Code**\r\nUnfortunately I don't have a small case test case yet. The easiest steps I have so far:\r\n- `git clone https://github.com/GoogleChrome/lighthouse.git`\r\n- `cd lighthouse`\r\n- `yarn`\r\n- `yarn add -D typescript@3.7.2`\r\n- `yarn tsc`\r\n\r\n**Expected behavior:**\r\nComplete `tsc` run\r\n\r\n**Actual behavior:**\r\n```\r\n~/lighthouse/node_modules/typescript/lib/tsc.js:78629\r\n throw e;\r\n ^\r\n\r\nRangeError: Maximum call stack size exceeded\r\n at getTypeFromJSDocValueReference (~/lighthouse/node_modules/typescript/lib/tsc.js:35334:48)\r\n at getTypeReferenceType (~/lighthouse/node_modules/typescript/lib/tsc.js:35323:33)\r\n at getTypeFromJSDocValueReference (~/lighthouse/node_modules/typescript/lib/tsc.js:35348:32)\r\n at getTypeReferenceType (~/lighthouse/node_modules/typescript/lib/tsc.js:35323:33)\r\n at getTypeFromJSDocValueReference (~/lighthouse/node_modules/typescript/lib/tsc.js:35348:32)\r\n at getTypeReferenceType (~/lighthouse/node_modules/typescript/lib/tsc.js:35323:33)\r\n at getTypeFromJSDocValueReference (~/lighthouse/node_modules/typescript/lib/tsc.js:35348:32)\r\n at getTypeReferenceType (~/lighthouse/node_modules/typescript/lib/tsc.js:35323:33)\r\n at getTypeFromJSDocValueReference (~/lighthouse/node_modules/typescript/lib/tsc.js:35348:32)\r\n at getTypeReferenceType (~/lighthouse/node_modules/typescript/lib/tsc.js:35323:33)\r\nerror Command failed with exit code 1.\r\n```\r\n\r\nIn `3.7.1-rc` there were many of the `Property 'methodName' does not exist on type 'typeof ClassName'` errors that were being worked on in #34671, but it looks like the fix(es) struggles with something in our dependency graph and/or styles of declarations.\r\n\r\nNo issues or compilation errors using typescript@3.6.3 (though we're fine if there are new errors exposed by 3.7 that will need to be fixed in our code :)\r\n\r\n**Related Issues:** \u003c!-- Did you find other bugs that looked similar? -->\r\nThis seems very related to the cluster of issues @sandersn was working on in #34671, #34707, #34685, and #34802","author":{"url":"https://github.com/brendankenny","@type":"Person","name":"brendankenny"},"datePublished":"2019-11-05T19:54:48Z","url":"https://github.com/microsoft/TypeScript/issues/34926"}
| 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:8c0aeb76-1528-7482-5eff-7d231a0b7547 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED1C:3F8AB1:2F98BCD:3C7D835:6B01AC4A |
| html-safe-nonce | e7927600f134988b7c198e4584a3bb56cd3a25c52d5dce5a121369e5740ecfce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDFDOjNGOEFCMToyRjk4QkNEOjNDN0Q4MzU6NkIwMUFDNEEiLCJ2aXNpdG9yX2lkIjoiNzQzMjg2NTc0NDIxMzM1NTU5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ac2d5470a868d8e9e6c2aea70eb4d940c6a54d111a37382f804543d28563dd77 |
| hovercard-subject-tag | issue:517992363 |
| 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/34926/issue_layout |
| twitter:image | https://opengraph.githubassets.com/24bba394ac6fefa6fd9c39803a16b8ef9937ed08ea9515bf23963003f5a053b4/microsoft/TypeScript/issues/34926 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/24bba394ac6fefa6fd9c39803a16b8ef9937ed08ea9515bf23963003f5a053b4/microsoft/TypeScript/issues/34926 |
| og:image:alt | TypeScript Version: 3.7.2, 3.8.0-dev.20191105 Search Terms: JSDoc Type reference Maximum call stack size exceeded getTypeFromJSDocValueReference Code Unfortunately I don't have a small case test ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brendankenny |
| 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