Evan Jacobs

Results 294 comments of Evan Jacobs

This error happens 99% of the time because either `ssr` is not enabled in the babel plugin options and/or there is some other confounding factor like an `if` statement or...

They don’t conflict, but extending an existing component includes the base component in the set of classNames to preserve inheritance. This is intentional On Wed, Mar 4, 2020 at 6:24...

I'd double check the plugin is being added for your production build... if you use something like the "env" setting in your babel config and change the presets or plugins...

How are you importing styled? keyframes is a named export so you have to bring it in like this: ```js import { keyframes } from 'styled-components'; ```

I have a strong suspicion this is something to do with environment setup. I have a lot of complex projects using all parts of s-c and have never seen this...

We do the hash calculation based on the location of the call to styled, so that makes sense if all your styled calls are in the exact same file. On...

> Same here, > > ``` > TypeError: components/Button.js: Cannot read property 'property' of undefined > at node_modules/babel-plugin-styled-components/lib/utils/detectors.js:85:686 > at node_modules/babel-plugin-styled-components/lib/visitors/pure.js:18:36 > at PluginPass.CallExpression (node_modules/babel-plugin-styled-components/lib/index.js:45:30) > at newFn (node_modules/@babel/traverse/lib/visitors.js:171:21) >...

I'm honestly afraid to touch that code at this point. I've made updates multiple times that worked fine in testing and then caused all sorts of havoc in people's production...