Open yepMad opened 1 year ago
I see the same error
TypeError: Cannot read properties of undefined (reading 'name')
The error is on this line because node.expressions
is an empty array []
const report = (node) => {
const errorValue = node.type === 'TemplateLiteral'
? `TemplateLiteral: ${node.expressions[0].name}`
: node.value.trim();
Code:
Error: