TypeError: Cannot read properties of undefined (reading 'toLowerCase')
at getParser (file:///Users/shane/repos/brm/node_modules/@prettier/plugin-xml/src/embed.js:56:21)
at embed (file:///Users/shane/repos/brm/node_modules/@prettier/plugin-xml/src/embed.js:121:18)
at recurse (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:22194:20)
at AstPath.each (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:20791:9)
at recurse (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:22189:16)
at AstPath.call (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:20753:14)
at recurse (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:22191:16)
at AstPath.each (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:20791:9)
at recurse (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:22189:16)
at AstPath.call (file:///Users/shane/repos/brm/node_modules/prettier/index.mjs:20753:14)
console.log(node)
and the function is attempting to destructured some properties that don't exist
Stack trace
console.log(node)
and the function is attempting to destructured some properties that don't exist
const { Name, attribute } = node; let parser = Name.toLowerCase();
thus we get the undefined TypeError
details of my machine
prettier config
command to reproduce