CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
Memory: 1.97 GB / 7.66 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 21.5.0 - /usr/bin/node
Yarn: 4.0.2 - /usr/bin/yarn
npm: 10.3.0 - /usr/bin/npm
Watchman: 20240114.093239.0 - /usr/bin/watchman
npmPackages:
styled-components: 5.3.11 => 5.3.11
`
Reproduction
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.
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:
Binaries:
npmPackages:
Reproduction
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.