Skip to content

make web package support > 1.0.0 and < 2.0.0 #134

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

Closed
amrgetment opened this issue Jan 3, 2025 · 4 comments
Closed

make web package support > 1.0.0 and < 2.0.0 #134

amrgetment opened this issue Jan 3, 2025 · 4 comments

Comments

@amrgetment
Copy link

amrgetment commented Jan 3, 2025

I got the following error on my app

Because segment_analytics 1.1.2 depends on web >=0.3.0 <=1.0.0 and no versions of segment_analytics match >1.1.2 <2.0.0, segment_analytics ^1.1.2 requires web >=0.3.0 <=1.0.0.
So, because ment depends on both web ^1.1.0 and segment_analytics ^1.1.2, version solving failed.

the solution is very simple
make web package support > 1.0.0 and < 2.0.0

I solved it in my project by

dependency_overrides:
  web: ^1.1.0
@foxanna
Copy link

foxanna commented Feb 14, 2025

Same! A lot of recent versions of popular packages, including build_runner rely on web ^1.1.0 which causes errors when attempting to update:

Because build_runner 2.4.15 depends on web ^1.1.0 and segment_analytics 1.1.2 depends on web >=0.3.0 <=1.0.0, build_runner 2.4.15 is incompatible with segment_analytics 1.1.2.
Failed to update packages.

Users have to apply this temporary fix in every package of their project which is inconvenient:

dependency_overrides:
  web: 1.1.0

@ClaireDavis
Copy link

any chance we could get #143 merged to resolve this issue? :)

@chrisdlangham
Copy link

It seems like segment has "addressed" this here.
In segment_analytics 1.1.5, segment uses only web 1.1.1

https://github.com/segmentio/analytics_flutter/pull/149/files

@amrgetment
Copy link
Author

thanks

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

4 participants