Skip to content
This repository was archived by the owner on Jun 16, 2025. It is now read-only.
This repository was archived by the owner on Jun 16, 2025. It is now read-only.

Can't read property 'name' of undefined #579

@redevill

Description

@redevill

Not a good start for me:
Versions: Latest npm 6.14.8 and versions of node 10 & 12 were tried. Version 1.2.0 of depcheck
Setup: Installed depcheck globally per the documentation.
(Side note: Tried to verify with depcheck --v per standard - addition of this shortcut would be nice)

Running depcheck in the folder with the package.json produced:
"Can't read property 'name' of undefined"

Running depcheck /mypath with a specific path produced:
"Can't read property 'name' of undefined"

Running depcheck -v produced:
"Can't read property 'name' of undefined"

Running depcheck --json produced:
"Can't read property 'name' of undefined"

So - it appears that getRCFileConfiguration function is running, despite the fact I did not request the --config option.
Inside this function there is an error thrown with error.mark.name... apparently error.mark is undefined.
Hope that this helps

Disappointed that your lib is DOA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions