You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'identifier expected' error when using a string template followed by a pseudo-element selector #21
I've created a test case that reproduces this error in the e2e:
it('should not error with an interpolation identifier with a pseudo selector',async()=>{consterrorResponse=awaitgetSemanticDiagnosticsForFile(["function css(...args){}","const mixin = ''","css`"," .${mixin}:before {"," border-bottom: none;"," transition: none;"," }","`",].join('\n'));assert.isTrue(errorResponse.success);assert.strictEqual(errorResponse.body.length,0);});
Activity
usercao commentedon Sep 28, 2026
Fixed in
@styled/[email protected].Interpolations followed by pseudo-elements, such as
.${test}:before, should no longer produce anidentifier expectederror. Thanks for the report!