-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: The method 'disconnect' isn't defined for the class 'StreamChatClient'. #812
Comments
Hey @rohan20, We'd recommend moving to a more recent version (stream_chat_flutter: ^3.3.1 or similar). |
Hi @deven98, I would've definitely moved to a newer version if it were possible. But based on other dependencies, this is the most latest version that my project is eligible to upgrade to. There are conflicts with versions of To confirm, does that mean that there's a bug somewhere on the Thanks. |
Hey @rohan20, There likely shouldn't be a bug (I can take a better look at this if you like). I'm currently taking a look at the Can you let me know the error with Thanks. |
cc: @imtoori Hey Salvatore, pinging again just in case this got missed after our Slack conversation. 😬 Thanks! |
hey @rohan20 check your dms |
Hi @imtoori,
The suggested changes cause iOS Logs
Android Logs
If I may ask, what is the source of the issue for which this solution was proposed? |
hey @rohan20 I'm not sure, I think that's not due to the dependency_overrides I'm trying building a very simple app with the version of the package you're using and I'm getting other errors related to other dependencies |
@rohan20 I just compiled the app for both android and ios |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away! Thanks for your contribution. |
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
iOS
What version are you using?
What happened?
Actual behaviour:
I'm trying to migrate to null-safety which requires me to update a bunch of dependencies all at once. One of them being
stream_chat_flutter
. Upgrading fromstream_chat_flutter: ^1.5.6
tostream_chat_flutter: ^2.0.0-nullsafety.4
.I get this error on running a test: See "Relevant log output".
Which at the end says:
Failed to load "/Users/r.taneja/Flutter Projects/dh-rsc-flutter/test/config/feature_config_test.dart": Compilation failed Test: /Users/r.taneja/Flutter Projects/dh-rsc-flutter/test/config/feature_config_test.dart Shell: /Users/r.taneja/Documents/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester
Expected behaviour:
I should be able to run the test.
Steps to reproduce
$ /Users/r.taneja/Documents/flutter/bin/flutter --no-color test --machine --start-paused test/config/feature_config_test.dart
Supporting info to reproduce
I've already tried deleting the
.pub-cache
folder from the Flutter SDK too.Relevant log output
Error log
Flutter analyze output
To reiterate, I'm in the middle of migrating dependencies to their null-safe versions using
dart pub upgrade --null-safety
and fixing breaking changes:Flutter doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: