From 1ddea6e4ce11cc70335f5c14e75eac4629e3fc44 Mon Sep 17 00:00:00 2001 From: Raathigeshan Date: Tue, 4 Jun 2019 21:52:07 +1000 Subject: [PATCH] Handle unassigned template literal --- src/extension/file-handlers/js.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {