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

Compatibility issue with get_it 8.0.0 #482

Open
Konst80 opened this issue Oct 1, 2024 · 0 comments
Open

Compatibility issue with get_it 8.0.0 #482

Konst80 opened this issue Oct 1, 2024 · 0 comments

Comments

@Konst80
Copy link

Konst80 commented Oct 1, 2024

Hello everyone,

during the installation via "flutter pub add injectable" I get the following error:

The current Dart SDK version is 3.5.3.

Because injectable <1.2.0-nullsafety doesn't support null safety and injectable >=1.2.0-nullsafety <1.4.0 depends on get_it ^6.0.0, injectable <1.4.0 requires get_it ^6.0.0.
And because injectable >=1.4.0 <1.5.3 depends on get_it ^7.0.0 and injectable >=1.5.3 depends on get_it ^7.2.0, every version of injectable requires get_it ^6.0.0 or >=7.0.0
  <8.0.0.
So, because testapp depends on both get_it ^8.0.0 and injectable any, version solving failed.

The lower bound of "sdk: '>=2.5.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.

My understanding is that this is related to get_it ^8.0.0, which is quite recent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant