Skip to content
This repository has been 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

Open
ahn0min opened this issue Sep 17, 2023 · 1 comment
Labels

Comments

@ahn0min
Copy link

ahn0min commented Sep 17, 2023

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.

@ahn0min ahn0min added the bug label Sep 17, 2023
@ahn0min
Copy link
Author

ahn0min commented Sep 17, 2023

The error was avoided by downgrading to v1.7.8 => v1.7.5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant