I have this code and I have this error message and whatever I change made, error doesn't go away.
const track = css`
background: ${({ theme }) => rgba(theme.colors.gray['000'], 0.25)};
`
Functions that are interpolated in css calls will be stringified.
If you want to have a css call based on props, create a function that returns a css call like this
let dynamicStyle = (props) => csscolor: ${props.color}
It can be called directly with props or interpolated in a styled call like this
let SomeComponent = styled('div')${dynamicStyle}
Can anybody explain what is the issue here? and solution? Existing solutions which can be found in Google for this error doesn't work.