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

Conflict package build_runner versions #357

Open
jttuboi opened this issue May 9, 2024 · 1 comment
Open

Conflict package build_runner versions #357

jttuboi opened this issue May 9, 2024 · 1 comment

Comments

@jttuboi
Copy link

jttuboi commented May 9, 2024

When I run:

~$ flutter clean; flutter pub get;
Cleaning Xcode workspace...                                      1,346ms
Resolving dependencies... (1.4s)
Because build_runner >=2.0.0 depends on web_socket_channel ^2.0.0 and gris_app_flutter depends on web_socket_channel ^3.0.0, build_runner >=2.0.0 is forbidden.
So, because gris_app_flutter depends on build_runner ^2.4.9, version solving failed.


You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on web_socket_channel: flutter pub add web_socket_channel:^2.4.5

pupspec.yaml

environment:
  sdk: ">=3.3.4 <4.0.0"
  flutter: "3.19.6"

dependencies:
  ...
  web_socket_channel: ^3.0.0

dev_dependencies:
  ...
  build_runner: ^2.4.9
@SleepyMrPanda
Copy link

This is the issue with the build_runner package: dart-lang/build#3678

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

2 participants