René's URL Explorer Experiment


Title: TypeError: Cannot read property 'length' of undefined at Object.forEachChild · Issue #18301 · microsoft/TypeScript · GitHub

Open Graph Title: TypeError: Cannot read property 'length' of undefined at Object.forEachChild · Issue #18301 · microsoft/TypeScript

X Title: TypeError: Cannot read property 'length' of undefined at Object.forEachChild · Issue #18301 · microsoft/TypeScript

Description: TypeScript Version: 2.5.2 and 2.6.0-dev.20170906 (can reproduce on both versions) Code /** * @typedef LoadCallback * @type {function} */ type LoadCallback = void; Expected behavior: Code compiles successfully. Actual behavior: Compiler c...

Open Graph Description: TypeScript Version: 2.5.2 and 2.6.0-dev.20170906 (can reproduce on both versions) Code /** * @typedef LoadCallback * @type {function} */ type LoadCallback = void; Expected behavior: Code compiles s...

X Description: TypeScript Version: 2.5.2 and 2.6.0-dev.20170906 (can reproduce on both versions) Code /** * @typedef LoadCallback * @type {function} */ type LoadCallback = void; Expected behavior: Code compiles s...

Opengraph URL: https://github.com/microsoft/TypeScript/issues/18301

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: Cannot read property 'length' of undefined at Object.forEachChild","articleBody":"**TypeScript Version:**  2.5.2 and 2.6.0-dev.20170906 (can reproduce on both versions)\r\n\r\n**Code**\r\n\r\n```ts\r\n/**\r\n * @typedef LoadCallback\r\n * @type {function}\r\n */\r\ntype LoadCallback = void;\r\n```\r\n\r\n**Expected behavior:** Code compiles successfully.\r\n\r\n**Actual behavior:**\r\nCompiler crashes with the following error:\r\n\r\n```\r\n/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9921\r\n                for (var _i = 0, _a = node.jsDocPropertyTags; _i \u003c _a.length; _i++) {\r\n                                                                     ^\r\n\r\nTypeError: Cannot read property 'length' of undefined\r\n    at Object.forEachChild (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9921:70)\r\n    at setParentPointers (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:17392:12)\r\n    at /tmp/chris/downloads/node_modules/typescript/lib/tsc.js:17392:64\r\n    at visitNode (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9533:24)\r\n    at Object.forEachChild (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9918:25)\r\n    at setParentPointers (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:17392:12)\r\n    at /tmp/chris/downloads/node_modules/typescript/lib/tsc.js:17392:64\r\n    at visitNodes (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9542:30)\r\n    at Object.forEachChild (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9891:24)\r\n    at setParentPointers (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:17392:12)\r\n    at bindChildrenWorker (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15178:25)\r\n    at bindChildren (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15140:17)\r\n    at bindContainer (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15122:17)\r\n    at bind (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:16214:21)\r\n    at bindEach (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15157:21)\r\n    at visitNodes (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9538:24)\r\n    at Object.forEachChild (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:9707:24)\r\n    at bindEachChild (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15165:16)\r\n    at bindChildrenWorker (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15254:21)\r\n    at bindChildren (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15140:17)\r\n    at bindContainer (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:15093:17)\r\n    at bind (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:16214:21)\r\n    at bindSourceFile (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:14851:17)\r\n    at Object.bindSourceFile (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:14809:9)\r\n    at initializeTypeChecker (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:36496:20)\r\n    at Object.createTypeChecker (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:18543:9)\r\n    at getDiagnosticsProducingTypeChecker (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:56042:93)\r\n    at Object.getGlobalDiagnostics (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:56370:53)\r\n    at compileProgram (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:59092:78)\r\n    at compile (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:59051:26)\r\n    at performCompilation (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:58940:33)\r\n    at Object.executeCommandLine (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:58883:9)\r\n    at Object.\u003canonymous> (/tmp/chris/downloads/node_modules/typescript/lib/tsc.js:59241:4)\r\n    at Module._compile (module.js:573:30)\r\n    at Object.Module._extensions..js (module.js:584:10)\r\n    at Module.load (module.js:507:32)\r\n    at tryModuleLoad (module.js:470:12)\r\n    at Function.Module._load (module.js:462:3)\r\n    at Module.require (module.js:517:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.\u003canonymous> (/tmp/chris/downloads/node_modules/typescript/bin/tsc:2:1)\r\n    at Module._compile (module.js:573:30)\r\n    at Object.Module._extensions..js (module.js:584:10)\r\n    at Module.load (module.js:507:32)\r\n    at tryModuleLoad (module.js:470:12)\r\n    at Function.Module._load (module.js:462:3)\r\n    at Function.Module.runMain (module.js:609:10)\r\n    at startup (bootstrap_node.js:158:16)\r\n    at bootstrap_node.js:598:3\r\n```","author":{"url":"https://github.com/lambda-fairy","@type":"Person","name":"lambda-fairy"},"datePublished":"2017-09-07T05:45:29Z","url":"https://github.com/microsoft/TypeScript/issues/18301"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:87faddc2-41a8-c2f6-a71d-ef6c7f5d91b8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC394:D5AA4:D63163:11F2B8E:6B00F73F
html-safe-nonce2f32dfea5695ab552e8e336d5f556ef9043a786e1b14959a07e5258bf192619b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMzk0OkQ1QUE0OkQ2MzE2MzoxMUYyQjhFOjZCMDBGNzNGIiwidmlzaXRvcl9pZCI6IjI0NjAwNzAxODQxODcxMzE3MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd3ebbafb6124c9d80ce49b5429fb9c1a01d4d361d59cde1ecf0c3ee1273d6398
hovercard-subject-tagissue:255821901
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/18301/issue_layout
twitter:imagehttps://opengraph.githubassets.com/43eda45c1e70afd43797c444e545444e96dc5da919652ed3d2a5975f4eefc30d/microsoft/TypeScript/issues/18301
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/43eda45c1e70afd43797c444e545444e96dc5da919652ed3d2a5975f4eefc30d/microsoft/TypeScript/issues/18301
og:image:altTypeScript Version: 2.5.2 and 2.6.0-dev.20170906 (can reproduce on both versions) Code /** * @typedef LoadCallback * @type {function} */ type LoadCallback = void; Expected behavior: Code compiles s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelambda-fairy
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id20929025
octolytics-dimension-repository_nwomicrosoft/TypeScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20929025
octolytics-dimension-repository_network_root_nwomicrosoft/TypeScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/TypeScript/issues/18301#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F18301
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FTypeScript%2Fissues%2F18301
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FTypeScript
Reloadhttps://github.com/microsoft/TypeScript/issues/18301
Reloadhttps://github.com/microsoft/TypeScript/issues/18301
Reloadhttps://github.com/microsoft/TypeScript/issues/18301
microsofthttps://github.com/microsoft
TypeScripthttps://github.com/microsoft/TypeScript
Codehttps://github.com/microsoft/TypeScript
Issues5k (5k)https://github.com/microsoft/TypeScript/issues
Pull requests309 (309)https://github.com/microsoft/TypeScript/pulls
Actionshttps://github.com/microsoft/TypeScript/actions
Projectshttps://github.com/microsoft/TypeScript/projects
Wikihttps://github.com/microsoft/TypeScript/wiki
Security and qualityhttps://github.com/microsoft/TypeScript/security
Insightshttps://github.com/microsoft/TypeScript/insights
https://github.com/microsoft/TypeScript
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/18301
New issuehttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/18301
TypeError: Cannot read property 'length' of undefined at Object.forEachChildhttps://github.com/microsoft/TypeScript/issues/18301#top
https://github.com/sandersn
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDocRelates to JSDoc parsing and type generationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.5.3https://github.com/microsoft/TypeScript/milestone/55
https://github.com/lambda-fairy
Chris Wong (lambda-fairy)https://github.com/lambda-fairy
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issue-255821901
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDocRelates to JSDoc parsing and type generationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1238125123
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1238125378
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
TypeScript 2.6https://github.com/microsoft/TypeScript/milestone/53
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1238125500
https://github.com/DanielRosenwasser
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-327694358
Daniel Rosenwasser (DanielRosenwasser)https://github.com/DanielRosenwasser
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1238133173
https://github.com/weswigham
Wesley Wigham (weswigham)https://github.com/weswigham
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-327696278
Daniel Rosenwasser (@DanielRosenwasser)https://github.com/DanielRosenwasser
https://github.com/lambda-fairy
Chris Wong (lambda-fairy)https://github.com/lambda-fairy
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-327725509
old version of protobufjshttps://github.com/dcodeIO/protobuf.js/blob/6.5.3/index.d.ts#L395-L403
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-327830674
Wesley Wigham (@weswigham)https://github.com/weswigham
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
TypeScript 2.5.3https://github.com/microsoft/TypeScript/milestone/55
TypeScript 2.6https://github.com/microsoft/TypeScript/milestone/53
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1239379967
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-327940858
#17352https://github.com/microsoft/TypeScript/pull/17352
#17352https://github.com/microsoft/TypeScript/pull/17352
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Sep 7, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-327951951
https://github.com/sandersn
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
on Sep 8, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-328137848
#18333https://github.com/microsoft/TypeScript/pull/18333
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
completedhttps://github.com/microsoft/TypeScript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#18333https://github.com/microsoft/TypeScript/pull/18333
on Sep 8, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1241049860
https://github.com/lambda-fairy
Chris Wong (lambda-fairy)https://github.com/lambda-fairy
on Oct 1, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-333360534
other bugshttps://github.com/Microsoft/TypeScript/issues?q=is%3Aissue+milestone%3A%22TypeScript+2.5.3%22+label%3A%22fixed%22
Mohamed Hegazy (mhegazy)https://github.com/mhegazy
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
on Oct 4, 2017https://github.com/microsoft/TypeScript/issues/18301#event-1278486885
https://github.com/s2zaman
Shah Zaman (s2zaman)https://github.com/s2zaman
on Nov 29, 2017https://github.com/microsoft/TypeScript/issues/18301#issuecomment-347778808
angular/angular-cli#5053 (comment)https://github.com/angular/angular-cli/issues/5053#issuecomment-347778098
microsofthttps://github.com/microsoft
on Jun 14, 2018https://github.com/microsoft/TypeScript/issues/18301#event-1682130114
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/TypeScript/issues/18301
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/TypeScript/issues/18301
Nathan Shively-Sanders (sandersn)https://github.com/sandersn
BugA bug in TypeScripthttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Bug%22
Domain: JSDocRelates to JSDoc parsing and type generationhttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Domain%3A%20JSDoc%22
FixedA PR has been merged for this issuehttps://github.com/microsoft/TypeScript/issues?q=state%3Aopen%20label%3A%22Fixed%22
TypeScript 2.5.3https://github.com/microsoft/TypeScript/milestone/55
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.