-
When implementing [the docs example](https://www.styled-components.com/docs/api#typescript) of how to use ThemeProvider in a Typescript project, the following error appears:
> Exported variable `Th…
-
I am using CRA and giving the `yarn build` command displays the following error:
```bash
Failed to compile.
Failed to minify the code from this file:
./node_modules/react-rasta/lib/t…
-
One nasty parts of using `styled-components` with TS is the lack of typing when you pass props to your style literal.
One solution can be found in `styled-components-ts` which wraps the `styled-com…
-
Getting an error after I upgraded typescript to 2.9.2 in my ThemeProvider.
const {
default: styled,
css,
injectGlobal,
keyframes,
ThemeProvider,
} = styledComponen…
-
## Version
styled-components: 2.4.0
typescript : 2.3.3
## Reproduction
Using this example in your docs:
``` javascript
import * as styledComponents from 'styled-components';
import {
…
-
Any chance if server-side rendering is supported via `styled-components`?
```
TypeError: styleSheet.getName is not a function
at ComponentStyle.generateAndInjectStyles (/Users/clodal/sites/ab…
-
For some reason I'm unable to generate the application from the generator.
The following is the output from my terminal. I do get a prompt about overwriting some files, which is weird... I suspect …
-
**TypeScript Version:** 2.3.1
**Code**
```ts
import styled from 'styled-components'
interface FooProps {
padding: number,
random?: boolean,
}
const Foo = styled.aside`
backgrou…
-
As such functions as `injectGlobal` does not work with TypeScript correctly (see #261 ) I had to create a function which executes injectGlobal.
```tsx
import {normalize} from 'polished';
import * a…
-
We have components that needs to have their html tag set dynamically based on props/children type.
We are concerned about potential memory leaks from creating styled components in the render method.
…