Skip to content

Dependency conflict: stream_chat_flutter incompatible with riverpod_generator: ^2.6.5 and freezed: ^3.0.4 and freezed_annotation: ^3.0.0 #2183

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

Open
1 task done
bareycn opened this issue Apr 5, 2025 · 4 comments
Labels
blocked Issues which are currently blocked.

Comments

@bareycn
Copy link

bareycn commented Apr 5, 2025

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS

What version are you using?

freezed_annotation: ^3.0.0
riverpod_generator: ^2.6.5
freezed: ^3.0.4

What happened?

The current Dart SDK version is 3.7.2.

Because stream_chat_flutter >=8.0.0-beta.1 <8.0.0 depends on share_plus >=7.1.0 <9.0.0 and stream_chat_flutter >=3.5.1 <5.0.1 depends on share_plus ^4.0.1, stream_chat_flutter >=3.5.1 <5.0.1-∞ or >=8.0.0-beta.1 <8.0.0 requires share_plus ^4.0.1 or >=7.1.0 <9.0.0.
And because stream_chat_flutter >=7.3.0 <8.0.0-beta.1 depends on stream_chat_flutter_core ^7.3.0 and stream_chat_flutter >=9.5.0 <9.6.0 depends on stream_chat_flutter_core ^9.5.0, stream_chat_flutter >=3.5.1 <5.0.1-∞ or >=7.3.0 <8.0.0-∞ or >=9.5.0 <9.6.0-∞ requires stream_chat_flutter_core ^7.3.0 or ^9.5.0
or share_plus ^4.0.1 or >=7.1.0 <9.0.0.
And because stream_chat_flutter >=9.4.0 <9.5.0 depends on stream_chat_flutter_core ^9.4.0 and stream_chat_flutter >=9.3.0 <9.4.0 depends on stream_chat_flutter_core ^9.3.0, stream_chat_flutter >=3.5.1 <5.0.1-∞ or >=7.3.0 <8.0.0-∞ or >=9.3.0 <9.6.0-∞ requires stream_chat_flutter_core ^7.3.0 or >=9.3.0
<10.0.0 or share_plus ^4.0.1 or >=7.1.0 <9.0.0.
And because stream_chat_flutter >=9.2.0 <9.3.0 depends on stream_chat_flutter_core ^9.2.0 and stream_chat_flutter >=9.1.0 <9.2.0 depends on stream_chat_flutter_core ^9.1.0, stream_chat_flutter >=3.5.1 <5.0.1-∞ or >=7.3.0 <8.0.0-∞ or >=9.1.0 <9.6.0-∞ requires stream_chat_flutter_core ^7.3.0 or >=9.1.0
<10.0.0 or share_plus ^4.0.1 or >=7.1.0 <9.0.0.
And because stream_chat_flutter >=9.0.0 <9.1.0 depends on stream_chat_flutter_core ^9.0.0 and stream_chat_flutter ^8.3.0 depends on stream_chat_flutter_core ^8.3.0, stream_chat_flutter >=3.5.1 <5.0.1-∞ or >=7.3.0 <8.0.0-∞ or >=8.3.0 <9.6.0-∞ requires stream_chat_flutter_core ^7.3.0 or ^8.3.0 or >=9.0.0
<10.0.0 or share_plus ^4.0.1 or >=7.1.0 <9.0.0.
And because stream_chat_flutter >=8.2.0 <8.3.0 depends on stream_chat_flutter_core ^8.2.0 and stream_chat_flutter >=8.1.0 <8.2.0 depends on stream_chat_flutter_core ^8.1.0, stream_chat_flutter >=3.5.1 <5.0.1-∞ or >=7.3.0 <8.0.0-∞ or >=8.1.0 <9.6.0-∞ requires stream_chat_flutter_core ^7.3.0 or >=8.1.0
<9.0.0 or >=9.0.0 <10.0.0 or share_plus ^4.0.1 or >=7.1.0 <9.0.0.
And because stream_chat_flutter >=8.0.0 <8.1.0 depends on stream_chat_flutter_core ^8.0.0 and stream_chat_flutter >=4.3.0 <7.3.0 depends on photo_view ^0.14.0, stream_chat_flutter >=3.5.1 <9.6.0 requires stream_chat_flutter_core ^7.3.0 or >=8.0.0 <9.0.0 or >=9.0.0 <10.0.0 or share_plus ^4.0.1 or >=7.1.0
<9.0.0 or photo_view ^0.14.0.
And because stream_chat_flutter <2.0.0-nullsafety.0 doesn't support null safety and stream_chat_flutter >=2.0.0-nullsafety.0 <3.6.0 depends on visibility_detector ^0.2.0, stream_chat_flutter <9.6.0 requires stream_chat_flutter_core ^7.3.0 or >=8.0.0 <9.0.0 or >=9.0.0 <10.0.0 or share_plus ^4.0.1 or >=7.1.0
<9.0.0 or photo_view ^0.14.0 or visibility_detector ^0.2.0.
And because stream_chat_flutter >=9.6.0 <9.7.0 depends on stream_chat_flutter_core ^9.6.0 and stream_chat_flutter >=9.7.0 depends on stream_chat_flutter_core ^9.7.0, every version of stream_chat_flutter requires stream_chat_flutter_core ^7.3.0 or >=8.0.0 <9.0.0 or >=9.0.0 <10.0.0 or share_plus ^4.0.1 or

=7.1.0 <9.0.0 or photo_view ^0.14.0 or visibility_detector ^0.2.0.
And because stream_chat_flutter_core >=6.8.0 depends on freezed_annotation ^2.4.1 and seeker depends on freezed_annotation ^3.0.0, every version of stream_chat_flutter requires share_plus ^4.0.1 or >=7.1.0 <9.0.0 or photo_view ^0.14.0 or visibility_detector ^0.2.0.
And because seeker depends on both photo_view ^0.15.0 and visibility_detector ^0.4.0+2, every version of stream_chat_flutter requires share_plus ^4.0.1 or >=7.1.0 <9.0.0.
So, because seeker depends on both share_plus ^10.1.4 and stream_chat_flutter any, version solving failed.

The lower bound of "sdk: '>=2.1.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety

Steps to reproduce

flutter pub add stream_chat_flutter

Supporting info to reproduce

No response

Relevant log output

Flutter analyze output

Flutter doctor output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@bareycn bareycn added the bug Something isn't working label Apr 5, 2025
@bareycn bareycn changed the title Dependency conflict: stream_chat_flutter incompatible with share_plus ^10.1.4 and Dart SDK 3.7.2 Dependency conflict: stream_chat_flutter incompatible with riverpod_generator: ^2.6.5 and freezed: ^3.0.4 and freezed_annotation: ^3.0.0 Apr 5, 2025
@xsahil03x
Copy link
Member

xsahil03x commented Apr 7, 2025

Hey @bareycn , can you share which stream_chat_flutter version you are currently using? Can you try the latest 9.7.0 version.

@xsahil03x xsahil03x added waiting for user response and removed bug Something isn't working labels Apr 8, 2025
@Kwon-Ben
Copy link

Kwon-Ben commented Apr 10, 2025

same to me.
i use 9.7.0 version

Because MyApp depends on stream_chat_flutter ^9.7.0 and no versions of stream_chat_flutter match >9.7.0 <10.0.0, stream_chat_flutter 9.7.0 is required.
And because stream_chat_flutter 9.7.0 depends on stream_chat_flutter_core ^9.7.0, stream_chat_flutter_core ^9.7.0 is required.
Because stream_chat_flutter_core 9.7.0 depends on freezed_annotation ^2.4.1 and no versions of stream_chat_flutter_core match >9.7.0 <10.0.0, stream_chat_flutter_core ^9.7.0 requires freezed_annotation ^2.4.1.
Thus, freezed_annotation ^2.4.1 is required.

@bareycn
Copy link
Author

bareycn commented Apr 10, 2025

@xsahil03x I'm using version 9.7.0
Restricted to freezed,riverpod_generator latest version.

@xsahil03x
Copy link
Member

Hey, upgrading freezed will be a breaking change for the SDK and we are planning to delay it a bit for now. Meanwhile you can try overridding the freezed dependency in pubspec.yaml.

You can also maybe upvote or help this issue to bring back the map/when functions.

@xsahil03x xsahil03x added blocked Issues which are currently blocked. and removed waiting for user response labels Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Issues which are currently blocked.
Projects
None yet
Development

No branches or pull requests

3 participants