You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 16, 2026. It is now read-only.
[BUG] Cannot read properties of undefined (reading 'start') #3
The issue does not happen when I remove the array and just have "images": "..." directly.
Expected behavior
I would expect this to work, but a better error message to give a better idea of what the actual issue is, or at least a line number pointing to the offending link, would be nice too.
I'm also experiencing this in a totally normal Markdown file and I have absolutely no idea why. This is the most I get:
I'm really loving linkinspector otherwise. Thanks so much for your hard work on this!
I was facing the same error message on some of my repositories and after some debugging I found the root cause: a wrong link structure.
In some of the files I have the following content:
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders
responsible for enforcement at [info@example.org]. All complaints will be reviewed and investigated promptly
and fairly.
The link to the email address was not fully completed, missed the ( and ). Changing the structure to the right pattern [info@example.org](info@example.org) the execution of the linkspector is successfull.
It seems that there is a side corner scenario for wrong link patterns not evaluated by linkspector. It could be great to check it instead of this current annoying error.
In lib/extract-markdown-hyperlinks.js (line 32), the AST visitor checks whether a link line is disabled:
}elseif(!isDisabled(node.position.start.line)){
Remark AST nodes generated in certain contexts (such as autolink literals within bracketed references or JSON arrays parsed as markdown) do not always have a position object defined. Attempting to access node.position.start throws TypeError: Cannot read properties of undefined (reading 'start'), crashing the process.
Recommended Fix
In lib/extract-markdown-hyperlinks.js, guard the position check with optional chaining:
In lib/get-disabled-lines.js (line 34), guard node.position?.start?.line with optional chaining as well.
Ensure downstream position handling in lib/update-linkstatus-obj.js continues to provide default position values when node.position is absent.
Proposed Test Case
describe('handling nodes without position metadata',()=>{it('should not throw when extracting links from bracketed references or JSON array links',()=>{constmarkdownWithBracketedLink='Contact at [info@example.org] for support.'expect(()=>extractMarkdownHyperlinks(markdownWithBracketedLink,{})).not.toThrow()constjsonSnippet='{\n "images": [\n "https://example.com/image.jpg"\n ]\n}'expect(()=>extractMarkdownHyperlinks(jsonSnippet,{})).not.toThrow()})})
Next steps:
/fs-code — agent creates a PR to implement this issue
/fs-code <your instruction> — agent implements with your specific guidance
Activity
fullsend-ai-triage commentedon Nov 13, 2026
🤖 Finished Triage · ✅ Success · Started 6:15 AM UTC · Completed 6:23 AM UTC
Commit:
4fe27f4· View workflow run →Runtime: pi · Model: google-vertex/gemini-3.8-flash → gemini-3.8-flash · Effort: high · Cost: $0.49
fullsend-ai-triage commentedon Nov 13, 2026
Triage Analysis
Root Cause
In
lib/extract-markdown-hyperlinks.js(line 32), the AST visitor checks whether a link line is disabled:Remark AST nodes generated in certain contexts (such as autolink literals within bracketed references or JSON arrays parsed as markdown) do not always have a
positionobject defined. Attempting to accessnode.position.startthrowsTypeError: Cannot read properties of undefined (reading 'start'), crashing the process.Recommended Fix
lib/extract-markdown-hyperlinks.js, guard the position check with optional chaining:lib/get-disabled-lines.js(line 34), guardnode.position?.start?.linewith optional chaining as well.lib/update-linkstatus-obj.jscontinues to provide default position values whennode.positionis absent.Proposed Test Case
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-coder commentedon Nov 13, 2026
🤖 Finished Code · ✅ Success · Started 6:24 AM UTC · Completed 6:43 AM UTC
Commit:
4fe27f4· View workflow run →Runtime: pi · Model: google-vertex/gemini-3.8-flash → gemini-3.8-flash · Effort: high · Cost: $1.15