TypeError: Cannot read property 'toString' of undefined
bfintal opened this issue · 2 comments
bfintal commented
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 commented
@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 commented
If any further information is found, feel free to re-open. Otherwise, I'm going to close this. Thanks!