Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Cannot read properties of undefined (reading 'start') #77

Open
Rolv-Apneseth opened this issue Jul 20, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Rolv-Apneseth
Copy link

Describe the bug
First, thank you for making this.

As for the issue, while running linkspector check on a json file, I am getting the following error:

💥 Error: Cannot read properties of undefined (reading 'start')

To Reproduce
Running linkspector check with the following minimal json file causes it for me:

{
    "images": [
        "https://cdn.britannica.com/75/178475-050-E9212E3D/Pyramid-of-Khufu-Giza-Egypt.jpg"
    ]
}

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.

@Rolv-Apneseth Rolv-Apneseth added the bug Something isn't working label Jul 20, 2024
@ajdubovoy
Copy link

ajdubovoy commented Feb 4, 2025

I'm also experiencing this in a totally normal Markdown file and I have absolutely no idea why. This is the most I get:

Image

I'm really loving linkinspector otherwise. Thanks so much for your hard work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants