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

Cannot build library using ferry 0.16.1 #636

Closed
rneswold opened this issue Mar 20, 2025 · 2 comments
Closed

Cannot build library using ferry 0.16.1 #636

rneswold opened this issue Mar 20, 2025 · 2 comments

Comments

@rneswold
Copy link

We have a library that uses ferry. An app of ours uses the library but no longer builds due to dependency issues. Our library uses subscriptions and, in trying to use the latest ferry versions, we're not able to build because of version conflicts. A portion of our pubspec.yaml dependencies:

    ferry: ^0.16.1
    gql_http_link: ^1.1.0
    gql_websocket_link: ^2.0.1
    gql_code_builder: ^0.13.0

ferry v0.16.1 pulls in web_socket_channel v3.0.2. For WebSockets, your documentation recommends gql_websocket_link for non-Apollo applications. Unfortunately, web_socket_channel v3.0 wants rxdart v0.28 whereas gql_websocket_link wants rxdart < v0.28.

Does ferry v0.16.1 recommend a different WebSocket package? Does anyone have a set of dependencies to get subscriptions working with the latest ferry?

(We'd stay at the previous version, but a different package the app uses already wants rxdart v0.28, so we thought we'd take the opportunity to update ferry.)

Thanks for any help you can provide!

@knaeckeKami
Copy link
Collaborator

Ferry should not depend on web_socket_channel. if it does, that's a bug.

web_socket_channel should only be a dependency of gql_websocket_link.

unfortunately, there have been some issues with upgrading to web_socket_channel 3.0.0, see gql-dart/gql#475

@rneswold
Copy link
Author

rneswold commented Mar 21, 2025

Ah, you're right! While commenting out various combinations, I found this:

Because ferry >=0.16.1-dev.0+2 depends on rxdart ^0.28.0 and
    gql_websocket_link >=0.3.4-alpha+1659810970399 depends on rxdart >=0.26.0 <0.28.0,
ferry >=0.16.1-dev.0+2 is incompatible with gql_websocket_link >=0.3.4-alpha+1659810970399.

This makes less sense, though, because ferry and gql_websocket_link are projects from the same organization, right?

I guess we'll try to downgrade the other packages and stick with ferry v0.16.0.

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