Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Interpolation with empty string literal ${''} evaluates to undefined #47

Closed
ghost opened this issue Jun 20, 2017 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Jun 20, 2017

See #46

Example:

import styled from 'styled-components'

const Container = styled.div`
  ${''}
  ${''}
  max-width: 30rem;
  padding: 1rem;
`

export default Container

Second rule of the styles triggers Unexpected duplicate "undefined" [declaration-block-no-duplicate-properties] error.

@emilgoldsmith
Copy link
Member

emilgoldsmith commented Jul 10, 2017

This is the same cause as #55 and should now be fixed.

edit: And the PR that should've fixed it is #59

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

No branches or pull requests

1 participant