astroturf icon indicating copy to clipboard operation
astroturf copied to clipboard

Empty style object

Open ai opened this issue 6 years ago • 1 comments

import { css } from 'css-literal-loader/styled'

let styles = css`
  .bold {
    font-weight: bold;
  }
  .list {
    padding: 8px 0;
  }
  .item {
    padding: 2px 0;
    margin-left: 15px;
    color: var(--dangerous);
    list-style: disc;
  }
`

console.log(Object.keys(styles))

Prints [].

It could be environment or config problem. But I have no idea where I shouls look at.

ai avatar Sep 09 '18 04:09 ai

OK, I found the issue. I missed with modules: true in webpack config.

I will think how to improve error message to make onboarding easier.

ai avatar Sep 09 '18 07:09 ai