You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 11, 2022. It is now read-only.
What a coincidence... I just got the exact same issue. After I got this I also tested pure create-react-app, and it worked without a problem. Which means I guess react-scripts-ts can be a problem here.
here are the versions I used. I tested styled-components with both v3 and v4
"react-scripts-ts": "3.1.0",
"react-app-rewired": "^1.6.2",
"react-app-rewire-styled-components": "^3.0.2",
Thanks for confirming this, @lonyele, although I was hoping it wouldn't be the case. I'll leave the issue open in case anyone has ideas on how this might be fixed. With the popularity of react-scripts-ts there are likely others running into this.
I'm attempting to get this working with a Create React App project that's using react-scripts-ts. Here's what I've tried:
npm install --save-dev babel-plugin-styled-components
npm install --save react-app-rewire-styled-components
npm install --save-dev react-app-rewired
npm start
Unfortunately, it doesn't seem to be working as the friendly class names aren't included:

Do you have any ideas on what I might try next to get this working?
The text was updated successfully, but these errors were encountered: