facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
118.4k stars 24.25k forks source link

Attempted to remove more RCTLinkingManager listeners than added #32804

Closed mehmetcansahin closed 5 months ago

mehmetcansahin commented 2 years ago

New Version

0.66.4

Old Version

0.66.1

Build Target(s)

ios simulator

Output of react-native info

System: OS: macOS 12.0.1 CPU: (8) arm64 Apple M1 Memory: 803.86 MB / 16.00 GB Shell: 3.3.1 - /opt/homebrew/bin/fish Binaries: Node: 17.0.1 - /opt/homebrew/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 8.1.0 - /opt/homebrew/bin/npm Watchman: 2021.10.18.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 Android SDK: API Levels: 26, 28, 29, 30, 31 Build Tools: 29.0.2, 30.0.2, 31.0.0 System Images: android-31 | Google Play ARM 64 v8a Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild Languages: Java: 11.0.10 - /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.1 => 0.66.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Issue and Reproduction Steps

When I upgrade from react native version 0.66.1 to 0.66.4 I get the error "Attempted to remove more RCTLinkingManager listeners than added". This error causes the application to crash. I downgrade the application, the problem is solved.

mansdahlstrom1 commented 2 years ago

I'm also getting the error on React Native 0.66.1.

fatih18 commented 2 years ago

I'm also getting this when i try to use react-native-gifted-chat

olcaneristi commented 2 years ago

I'm also getting this error on React Native 0.66.4. Does anyone have a solution for that problem?

ghost commented 2 years ago

I think you use amplify-js? if yes here is an issue:

https://github.com/aws-amplify/amplify-js/issues/9492

olcaneristi commented 2 years ago

I think you use amplify-js? if yes here is an issue:

aws-amplify/amplify-js#9492

nope, I'm not using Amplify. :(

beisert1 commented 2 years ago

Same error here after updating to react-native v0.66.4 and we are not using amplify-js

AkshatSharda commented 2 years ago

I am also facing the same issue after upgrading to react-native v0.66.4 and not using amplify-js as well.

Nishit-Chauhan commented 2 years ago

i am also facing the same issue after upgrading from 0.61.5 to 0.66.4 and not using amplify-js as well.

beisert1 commented 2 years ago

Want to add that I updated to latest 0.67.3 in hopes it would not have this issue but unfortunately it does. It appears this error is happening since version 0.66.0

beisert1 commented 2 years ago

For anyone struggling with this issue please check react-navigation, we are on an old fork of v2 react-navigation and I was able to apply something similar to this solution that resolved this error: https://github.com/react-navigation/react-navigation/issues/9894

nica0012 commented 2 years ago

For anyone struggling with this issue please check react-navigation, we are on an old fork of v2 react-navigation and I was able to apply something similar to this solution that resolved this error: https://github.com/react-navigation/react-navigation/issues/9894

Can you please share how you went about solving this?

Do you need to apply those edits every time you run yarn / npm install?

yasodha-r commented 1 year ago

This issue exist in 0.68 as well. Any fix/workaround available?

brysonjonesy commented 1 year ago

Still happening in 0.70.3

gern132 commented 1 year ago

appeared after upgrading the RN from 61 to 69

sandeepa91 commented 1 year ago

I'm also facing the same issue after upgrading from 0.64.0 to 0.70.0

github-actions[bot] commented 5 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been stalled for 7 days with no activity.

aurangs7 commented 4 months ago

still getting this error in react-native 0.71.4

AngCosmin commented 4 months ago

Still happening in RN 0.71.4