Skip to content
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

Upgrade to latest dependencies #1144

Closed
yauhenuzum opened this issue Jan 2, 2025 · 4 comments
Closed

Upgrade to latest dependencies #1144

yauhenuzum opened this issue Jan 2, 2025 · 4 comments
Assignees
Labels
bug Something isn't working needs triage

Comments

@yauhenuzum
Copy link

Please upgrade to latest source_gen 2.0.0

Because json_serializable >=6.9.1 depends on source_gen ^2.0.0 and freezed 2.5.7 depends on source_gen ^1.4.0, json_serializable >=6.9.1 is incompatible with freezed 2.5.7.
And because no versions of freezed match >2.5.7 <3.0.0, json_serializable >=6.9.1 is incompatible with freezed ^2.5.7.

@yauhenuzum yauhenuzum added bug Something isn't working needs triage labels Jan 2, 2025
@HudsonAfonso
Copy link

+1

@victorcode1
Copy link

The following libraries are crashing for me:
source_gen
dart_style
analyzer

@pro100andrey
Copy link

pro100andrey commented Jan 4, 2025

+1

@ChunhThanhDe
Copy link

ChunhThanhDe commented Jan 6, 2025

Please upgrade to latest source_gen 2.0.0

Because json_serializable >=6.9.1 depends on source_gen ^2.0.0 and freezed 2.5.7 depends on source_gen ^1.4.0, json_serializable >=6.9.1 is incompatible with freezed 2.5.7. And because no versions of freezed match >2.5.7 <3.0.0, json_serializable >=6.9.1 is incompatible with freezed ^2.5.7.

@yauhenuzum @HudsonAfonso @victorcode1 @pro100andrey I have clarified the problem you are having right?

Summary to clarify the problem

Issue is

your project is using the json_serializable package with a version greater than 6.9.1 and there is a version conflict between the two libraries frozen and json_serializable with the source_gen dependency

detail is

  • freezed version 2.5.7 (latest) requires the source_gen library dependency version ^1.4.0.
  • But json_serializable from version 6.9.1 and above requires source_gen version ^2.0.0.
json_serializable version 6.9.2 freezer version 2.5.7
Screenshot 2025-01-06 at 14 13 18 Screenshot 2025-01-06 at 14 10 49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

No branches or pull requests

6 participants