GetStream / stream-chat-react-native

💬 React-Native Chat SDK ➜ Stream Chat. Includes a tutorial on building your own chat app experience using React-Native, React-Navigation and Stream
https://getstream.io/chat/sdk/react-native/
Other
962 stars 323 forks source link

Tutorial Broken when using NPM Install (npm 7.20.3) but Yarn Install works (1.22.11) #798

Closed NicholasBoccuzzi closed 3 years ago

NicholasBoccuzzi commented 3 years ago

Describe the bug Immediately receive the hooks error when attempting step 1 Add Stream Chat to your application from this tutorial: https://getstream.io/chat/react-native-chat/tutorial/

Dev environment info (please complete/provide the following information):

To Reproduce Steps to reproduce the behavior:

  1. run npm install using npm 7.20.3
  2. error is appeared immediately after attempting step 1 of the tutorial (see NPM screenshot below)

Expected behavior Expect to see the same result as the yarn install

Screenshots

NPM

YARN

tsirlucas commented 3 years ago

Probably related to #541 and #744

tsirlucas commented 3 years ago

Maybe related to this: https://github.com/facebook/react/issues/13991

@NicholasBoccuzzi can you run npm ls react-dom, npm ls react-native and npm ls react as explained here or here

NicholasBoccuzzi commented 3 years ago

Maybe related to this: facebook/react#13991

@NicholasBoccuzzi can you run npm ls react-dom, npm ls react-native and npm ls react as explained here or here

Hi @tsirlucas! I received the following when running:

npm ls react

├─┬ @apollo/client@3.4.2
│ └── react@17.0.1 deduped
├─┬ @react-native-community/cameraroll@4.0.4
│ └── react@17.0.1 deduped
├─┬ @react-navigation/native-stack@6.0.2
│ ├─┬ @react-navigation/elements@1.0.1
│ │ └── react@17.0.1 deduped
│ └── react@17.0.1 deduped
├─┬ @react-navigation/native@6.0.1
│ ├─┬ @react-navigation/core@6.0.1
│ │ └── react@17.0.1 deduped
│ └── react@17.0.1 deduped
├─┬ @react-navigation/stack@6.0.3
│ ├─┬ @react-navigation/elements@1.0.2
│ │ └── react@17.0.1 deduped
│ └── react@17.0.1 deduped
├─┬ @stream-io/flat-list-mvcp@0.10.1
│ └── react@17.0.1 deduped
├─┬ native-base@3.0.7
│ ├─┬ @react-aria/visually-hidden@3.2.3
│ │ ├─┬ @react-aria/interactions@3.5.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-aria/utils@3.8.2
│ │ │ ├─┬ @react-aria/ssr@3.0.3
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/button@0.2.4
│ │ ├─┬ @react-stately/toggle@3.2.3
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/checkbox@3.2.3
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/checkbox@0.2.3
│ │ ├─┬ @react-aria/checkbox@3.2.3
│ │ │ ├─┬ @react-aria/toggle@3.1.4
│ │ │ │ ├─┬ @react-types/switch@3.1.2
│ │ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ ├─┬ @react-stately/checkbox@3.0.3
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-native-aria/toggle@0.2.3
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/combobox@0.2.4-alpha.1
│ │ ├─┬ @react-aria/combobox@3.0.1
│ │ │ ├─┬ @react-aria/i18n@3.3.2
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ ├─┬ @react-aria/menu@3.2.3
│ │ │ │ ├─┬ @react-stately/tree@3.2.0
│ │ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ ├─┬ @react-aria/textfield@3.3.1
│ │ │ │ ├─┬ @react-types/textfield@3.2.3
│ │ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ ├─┬ @react-stately/collections@3.3.3
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ ├─┬ @react-stately/layout@3.4.1
│ │ │ │ ├─┬ @react-stately/virtualizer@3.1.5
│ │ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ │ ├─┬ @react-types/grid@3.0.0-rc.0
│ │ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ │ ├─┬ @react-types/table@3.0.0-rc.7
│ │ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-aria/live-announcer@3.0.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-aria/overlays@3.7.2
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/button@3.4.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/focus@0.2.5
│ │ ├─┬ @react-aria/focus@3.4.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/interactions@0.2.8
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/listbox@0.2.4-alpha.2
│ │ ├─┬ @react-aria/label@3.1.3
│ │ │ ├─┬ @react-types/label@3.4.1
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-aria/listbox@3.3.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-aria/selection@3.5.1
│ │ │ ├─┬ @react-stately/selection@3.7.0
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/listbox@3.2.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/shared@3.8.0
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/overlays@0.2.11
│ │ ├─┬ @react-stately/overlays@3.1.3
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/overlays@3.5.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/radio@0.2.5
│ │ ├─┬ @react-aria/radio@3.1.5
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/radio@3.1.2
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/slider@0.2.5-alpha.1
│ │ ├─┬ @react-aria/slider@3.0.3
│ │ │ ├─┬ @react-types/slider@3.0.2
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-stately/slider@3.0.3
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/tabs@0.2.7
│ │ ├─┬ @react-aria/tabs@3.0.0-alpha.2
│ │ │ ├─┬ @react-stately/tabs@3.0.0-alpha.0
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-stately/tabs@3.0.0-alpha.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/tabs@3.0.0-alpha.2
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-native-aria/utils@0.2.7
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-stately/combobox@3.0.1
│ │ ├─┬ @react-stately/list@3.3.0
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-stately/menu@3.2.3
│ │ │ ├─┬ @react-types/menu@3.3.0
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-stately/select@3.1.3
│ │ │ ├─┬ @react-types/select@3.3.1
│ │ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-stately/utils@3.2.2
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-types/combobox@3.0.1
│ │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react@17.0.1 deduped
│ ├─┬ @react-stately/radio@3.3.2
│ │ └── react@17.0.1 deduped
│ └── react@17.0.1 deduped
├─┬ react-dom@17.0.1
│ └── react@17.0.1 deduped
├─┬ react-hook-form@7.12.2
│ └── react@17.0.1 deduped
├─┬ react-native-document-picker@6.0.2
│ └── react@17.0.1 deduped
├─┬ react-native-permissions@3.0.5
│ └── react@17.0.1 deduped
├─┬ react-native-reanimated@2.2.0
│ └── react@17.0.1 deduped
├─┬ react-native-safe-area-context@3.3.0
│ └── react@17.0.1 deduped
├─┬ react-native-screens@3.5.0
│ └── react@17.0.1 deduped
├─┬ react-native-svg@12.1.1
│ └── react@17.0.1 deduped
├─┬ react-native@0.64.1
│ ├── react@17.0.1 deduped
│ └─┬ use-subscription@1.5.1
│   └── react@17.0.1 deduped
├─┬ react-test-renderer@17.0.1
│ ├─┬ react-shallow-renderer@16.14.1
│ │ └── react@17.0.1 deduped
│ └── react@17.0.1 deduped
├── react@17.0.1
├─┬ stream-chat-react-native@3.7.2
│ └─┬ stream-chat-react-native-core@3.7.2
│   ├─┬ @gorhom/bottom-sheet@3.6.4
│   │ ├─┬ @gorhom/portal@1.0.7
│   │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│   │ ├─┬ react-native-redash@16.2.0
│   │ │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│   │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│   ├─┬ react-art@17.0.2
│   │ └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core, "17.0.2" from node_modules/stream-chat-react-native/node_modules/react-art
│   └── react@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
└─┬ styled-components@5.3.0
  └── react@17.0.1 deduped

npm ls react-dom

├─┬ native-base@3.0.7
│ ├─┬ @react-native-aria/combobox@0.2.4-alpha.1
│ │ ├─┬ @react-aria/combobox@3.0.1
│ │ │ ├─┬ @react-aria/menu@3.2.3
│ │ │ │ └── react-dom@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ │ └── react-dom@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ ├─┬ @react-aria/live-announcer@3.0.1
│ │ │ └── react-dom@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └─┬ @react-aria/overlays@3.7.2
│ │   └── react-dom@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ ├─┬ @react-native-aria/overlays@0.2.11
│ │ └── react-dom@17.0.1 deduped
│ └── react-dom@17.0.1 deduped
├── react-dom@17.0.1
├─┬ stream-chat-react-native@3.7.2
│ └─┬ stream-chat-react-native-core@3.7.2
│   └── react-dom@17.0.1 deduped invalid: "^16.8.6" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
└─┬ styled-components@5.3.0
  └── react-dom@17.0.1 deduped

npm ls react-native

├─┬ @react-native-async-storage/async-storage@1.15.5
│ └── react-native@0.64.1 deduped
├─┬ @react-native-community/cameraroll@4.0.4
│ └── react-native@0.64.1 deduped
├─┬ @react-native-community/netinfo@6.0.0
│ └── react-native@0.64.1 deduped
├─┬ @react-navigation/native-stack@6.0.2
│ ├─┬ @react-navigation/elements@1.0.1
│ │ └── react-native@0.64.1 deduped
│ └── react-native@0.64.1 deduped
├─┬ @react-navigation/native@6.0.1
│ └── react-native@0.64.1 deduped
├─┬ @react-navigation/stack@6.0.3
│ ├─┬ @react-navigation/elements@1.0.2
│ │ └── react-native@0.64.1 deduped
│ └── react-native@0.64.1 deduped
├─┬ @stream-io/flat-list-mvcp@0.10.1
│ └── react-native@0.64.1 deduped
├─┬ native-base@3.0.7
│ ├─┬ @react-native-aria/button@0.2.4
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/checkbox@0.2.3
│ │ ├─┬ @react-native-aria/toggle@0.2.3
│ │ │ └── react-native@0.64.1 deduped invalid: "^0.60.0" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/combobox@0.2.4-alpha.1
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/focus@0.2.5
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/interactions@0.2.8
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/listbox@0.2.4-alpha.2
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/overlays@0.2.11
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/radio@0.2.5
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/slider@0.2.5-alpha.1
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/tabs@0.2.7
│ │ └── react-native@0.64.1 deduped
│ ├─┬ @react-native-aria/utils@0.2.7
│ │ └── react-native@0.64.1 deduped
│ └── react-native@0.64.1 deduped
├─┬ react-native-document-picker@6.0.2
│ └── react-native@0.64.1 deduped
├─┬ react-native-fs@2.18.0
│ └── react-native@0.64.1 deduped
├─┬ react-native-haptic-feedback@1.11.0
│ └── react-native@0.64.1 deduped
├─┬ react-native-image-crop-picker@0.36.2
│ └── react-native@0.64.1 deduped
├─┬ react-native-image-resizer@1.4.5
│ └── react-native@0.64.1 deduped
├─┬ react-native-permissions@3.0.5
│ └── react-native@0.64.1 deduped
├─┬ react-native-reanimated@2.2.0
│ └── react-native@0.64.1 deduped
├─┬ react-native-safe-area-context@3.3.0
│ └── react-native@0.64.1 deduped
├─┬ react-native-screens@3.5.0
│ └── react-native@0.64.1 deduped
├─┬ react-native-svg@12.1.1
│ └── react-native@0.64.1 deduped
├─┬ react-native@0.64.1
│ └─┬ @react-native-community/cli@5.0.1
│   └── react-native@0.64.1 deduped
└─┬ stream-chat-react-native@3.7.2
  ├── react-native@0.64.1 deduped
  └─┬ stream-chat-react-native-core@3.7.2
    ├─┬ @gorhom/bottom-sheet@3.6.4
    │ ├─┬ @gorhom/portal@1.0.7
    │ │ └── react-native@0.64.1 deduped invalid: "^0.60.0" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
    │ ├─┬ react-native-redash@16.2.0
    │ │ └── react-native@0.64.1 deduped invalid: "^0.60.0" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
    │ └── react-native@0.64.1 deduped invalid: "^0.60.0" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core
    └── react-native@0.64.1 deduped invalid: "^0.60.0" from node_modules/stream-chat-react-native/node_modules/stream-chat-react-native-core

It appears that NPM v7 now installs peerDependencies by default according to this stack overflow post. And using npm install --legacy-peer-deps will restore npm v4 - v6 functionality (meaning it will not install package dependencies automatically).

I tested this by running npm install --legacy-peer-deps and running the tutorial and it worked! But I don't think this is ideal. Any idea of a proper solution?

tsirlucas commented 3 years ago

Hey @NicholasBoccuzzi , Im sorry but I didnt have the time to have a look at it today. For what I see it seems like there are some conflicts of react and react native with some of the libraries we use internally. Gonna check that out on monday.

tsirlucas commented 3 years ago

Hey @NicholasBoccuzzi just pinging you to tell that we didnt forget about it. I've been working on some other stuff lately but just had a call with @vishalnarkhede and hes gonna take over from here

tsirlucas commented 3 years ago

Hey @NicholasBoccuzzi, we have a fix for that on #804. If you still have this problem after that fix is released, please have a look at this comment I've made talking about how I've fixed the same problem in our SampleApp.

NicholasBoccuzzi commented 3 years ago

Hey Lucas! Thank you so much! Happy to hear that you were able to solve the problem. I really appreciate it.

On Fri, Aug 20, 2021 at 10:42 AM Lucas Correia @.***> wrote:

Hey @NicholasBoccuzzi https://github.com/NicholasBoccuzzi, we have a fix for that on #804 https://github.com/GetStream/stream-chat-react-native/pull/804. If you still have this problem after that fix is released, please have a look at this comment https://github.com/GetStream/stream-chat-react-native/pull/804#issuecomment-902740315 I've made talking about how I've fixed the same problem in our SampleApp.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react-native/issues/798#issuecomment-902741162, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHUCVCQMOYHTALG2APN5GBTT5ZSUNANCNFSM5B7OQL4Q .

vishalnarkhede commented 3 years ago

:tada: This issue has been resolved in version 3.7.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

tsirlucas commented 3 years ago

Hey @NicholasBoccuzzi closing this for now please reopen if the problem persists!