Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

use a child selector through > div {} in the emotion library, error (9999)  #434

@ahn0min

Description

@ahn0min

Describe the bug (including copyable syntax)

I'm working on a project using typescript and emotion + Next.js.
If you write the code as shown in the screenshot, the error at-rule or selector expected - ts-styled-plugin(9999) will occur.

However, the UI works fine as I want.

Screenshot
image

To Reproduce

import styled from '@emotion/styled';

const Item = styled.div`
  display: flex;
  justify-content: space-between;
  align-items: center;

  >div: first-child {
    flex: 1;
    margin-right: 10px;
  }
`;

Expected behavior

Build environment (please complete the following information):

  • OS: Windows 10 Education
  • VSCode Version: v.1.82.2
  • Extension Version v.1.7.8

Extensions
You can get this by running $ code --list-extensions in the command line

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions