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

TypeError: Cannot read property 'toString' of undefined #3

Closed
bfintal opened this issue Jan 8, 2019 · 2 comments
Closed

TypeError: Cannot read property 'toString' of undefined #3

bfintal opened this issue Jan 8, 2019 · 2 comments

Comments

@bfintal
Copy link

bfintal commented Jan 8, 2019

TypeError: Cannot read property 'toString' of undefined
node_modules/eslint-plugin-sort-destructure-keys/lib/rules/sort-destructure-keys.js:9:22

function getNodeName(node) {
    return typeof node.name === 'undefined'
        ? node.value.toString()
        : node.name;
}
@mthadley
Copy link
Owner

@bfintal Do you have any more context for this particular error? The code being linted that threw this error, or maybe which parser was used?

@mthadley
Copy link
Owner

If any further information is found, feel free to re-open. Otherwise, I'm going to close this. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants