Window is not defined · Issue #309 · gatsbyjs/gatsby

I'm trying to use a semantic-ui import along with my components. Works fine in development but if I try to gatsby build, I get Error: ReferenceError: window is not defined. I'm doing this: import $...