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

Can't currently have functional_widget and freezed both installed at the same time #93

Closed
triallax opened this issue Jul 27, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@triallax
Copy link

Describe the bug
I can't have the latest version of functional_widget and freezed installed at the same time.

To Reproduce

Just try to have both functional_widget: 0.9.0+2 and freezed: 0.14.3 installed at the same time.

Expected behavior
I expect it to work.

Actual behavior

$ flutter pub get
Because functional_widget >=0.9.0 depends on analyzer ^1.1.0 and freezed >=0.14.3 depends on analyzer ^2.0.0, functional_widget >=0.9.0 is incompatible with freezed >=0.14.3.
So, because foo depends on both freezed 0.14.3 and functional_widget 0.9.0+2, version solving failed.
Running "flutter pub get" in foo...
pub get failed (1; So, because foo depends on both freezed 0.14.3 and functional_widget 0.9.0+2, version solving
failed.)

Workarounds
Using freezed: 0.14.2 works.

Note: I reported this here because functional_widget is the one which depends on an outdated analyzer. Feel free to transfer to freezed if appropriate.

@triallax triallax added the bug Something isn't working label Jul 27, 2021
@adrianjagielak
Copy link

You can add dependency overrides to your pubspec.yaml like that:

dependency_overrides:
  analyzer: ^2.1.0

@rrousselGit
Copy link
Owner

This was apparently fixed but not closed, so I'll close it

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

No branches or pull requests

3 participants