styled-components: [v4.0.0-beta.9] - argv.indexOf undefined (React Native)
Environment
## System:
- OS: macOS 10.14
- CPU: x64 Intel(R) Core(TM) i7-6567U CPU @ 3.30GHz
- Memory: 2.87 GB / 16.00 GB
- Shell: 5.3 - /bin/zsh
## Binaries:
- Node: 10.7.0 - ~/.nvm/versions/node/v10.7.0/bin/node
- Yarn: 1.10.1 - /usr/local/bin/yarn
- npm: 6.1.0 - ~/.nvm/versions/node/v10.7.0/bin/npm
- Watchman: 4.7.0 - /usr/local/bin/watchman
## npmPackages:
- styled-components: v4.0.0-beta.9 => 4.0.0-beta.9
Looks like a similar issue as this one: https://github.com/styled-components/styled-components/issues/409
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 20 (9 by maintainers)
This is indeed an issue with the new official Styled Components v4 release. This isnโt present whatsoever in Styled Components v3. The only thing I modified is the styled components version, nothing else.
In line with what @ohsory1324 said above (thanks btw for that!)
If youโd like to get this working, you mostly just need to do this (Iโm on a Mac btw)
This code will help you.
yarn add supports-color๐
src/vendoruses cloak ๐ attack missesBeen there, done that. All good! ๐
Going to close this as Iโm now 100% sure this is a bundler bug and not something on our end.
@probablyup : Its probablyTrue ๐ . Facing too many issues with the latest react native. I will try a different version.