threepointone/glamor

Problem with glamor/babel

Closed this issue · 2 comments

Before all, thanks for this amazing project!

I'm facing some problems trying the lint option.
I copied the example

let rule = css`
  color: red;
  font-family: helvetica, sans-serif;
  :hover {
    color: blue
  }
  @media(min-width: 300px) {
    color: green
  }
`

and my .babelrc is

{
  "presets": [
    "env",
    "react"
  ],
  "plugins": [
    "transform-class-properties",
    "transform-object-rest-spread",
    "transform-regenerator",
    "glamor/babel"
  ]
}

but when I try to run my application, I see the error
screen shot 2017-06-15 at 15 33 57

What am I doing wrong?

could you try putting glamor/babel before the others?

closing this, please reopen if you have a reproducible test case you can share.