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 
screenshot 2018-09-30 at 16 41 29

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)

Most upvoted comments

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)

yarn add -D supports-color os

This code will help you. yarn add supports-color

๐Ÿ“ src/vendor uses cloak ๐Ÿ” attack misses

Been 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.