microsoft / typescript-styled-plugin

TypeScript server plugin that adds intellisense to styled component css strings
MIT License
839 stars 58 forks source link

`property value expected` with &:pseudo-selector #108

Closed cubeghost closed 1 year ago

cubeghost commented 5 years ago

👋 getting [ts-styled-plugin] property value expected when using a & and a pseudo selector. was also getting it earlier with ${OtherStyledComponent}:hover & {} but that error disappeared

Screen Shot 2019-10-18 at 2 18 29 PM
const Item = styled.li`
  counter-increment: ranking;
  padding: ${p => p.theme.spacing.full};
  padding-left: 0;
  position: relative;

  &:not(:last-child) {
    border-bottom: 1px solid #000;
  }
`;
mjbvz commented 1 year ago

Closing as this package has been deprecated in favor of the official styled-components/typescript-styled-plugin fork

After updating to that fork, follow up in the styled-components repo if this is still an issue