styled-components / styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress 💅
https://styled-components.com
MIT License
40.11k stars 2.48k forks source link

react-is not included as a dependency #4255

Open XilinJia opened 3 months ago

XilinJia commented 3 months ago

Environment

npx envinfo --system --binaries --npmPackages styled-components,babel-plugin-styled-components --markdown

`npx envinfo --system --binaries --npmPackages styled-components,babel-plugin-styled-components --markdown

System:

Not sure how to describe on how exactly to reproduce it. But here is what happened to me:

I have styled-components as a dependency in my Node/Electron project. The app runs fine in development mode, but the Electron bundle in production has no response when run. I put in some logging mechanisms and found that react-is is required by styled-components but is not included as a dependency in my bundle. I added "react-is": "^18.2.0", and the bundle runs OK.