diff --git a/src/extension/file-handlers/js.ts b/src/extension/file-handlers/js.ts index 2b0d187..f0cd01a 100644 --- a/src/extension/file-handlers/js.ts +++ b/src/extension/file-handlers/js.ts @@ -15,7 +15,7 @@ export function getTaggedTemplateExpressionStrings(ast: any) { const location = path.node.quasi.loc; results.push({ - name: path.parent.id.name, + name: (path.parent.id && path.parent.id.name) || '', cssString: wrapWithDummySelector(cssString), location: { start: {