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

Build Failed Because of EventStream error #317

Closed
RonitBanerjee opened this issue Jan 5, 2024 · 2 comments
Closed

Build Failed Because of EventStream error #317

RonitBanerjee opened this issue Jan 5, 2024 · 2 comments

Comments

@RonitBanerjee
Copy link

RonitBanerjee commented Jan 5, 2024

Hi team, my flutter app is failing to build bacause of an error with the version of the plugins.

../../../../.pub-cache/hosted/pub.dev/web_socket_channel-2.4.2/lib/src/web_helpers.dart:10:32:
Error: The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'.

  • 'WebSocket' is from 'package:web/src/dom/websockets.dart' ('../../../../.pub-cache/hosted/pub.dev/web-0.3.0/lib/src/dom/websockets.dart').
    Stream get onOpenX => EventStreamProviders.openEvent.forTarget(this);
    ^^^^^^^^^^^^^^^^^^^^
    ../../../../.pub-cache/hosted/pub.dev/web_socket_channel-2.4.2/lib/src/web_helpers.dart:12:7:
    Error: The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'.
  • 'WebSocket' is from 'package:web/src/dom/websockets.dart' ('../../../../.pub-cache/hosted/pub.dev/web-0.3.0/lib/src/dom/websockets.dart').
    EventStreamProviders.messageEvent.forTarget(this);
    ^^^^^^^^^^^^^^^^^^^^
    ../../../../.pub-cache/hosted/pub.dev/web_socket_channel-2.4.2/lib/src/web_helpers.dart:14:7:
    Error: The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'.
  • 'WebSocket' is from 'package:web/src/dom/websockets.dart' ('../../../../.pub-cache/hosted/pub.dev/web-0.3.0/lib/src/dom/websockets.dart').
    EventStreamProviders.closeEvent.forTarget(this);
    ^^^^^^^^^^^^^^^^^^^^
    ../../../../.pub-cache/hosted/pub.dev/web_socket_channel-2.4.2/lib/src/web_helpers.dart:16:7:
    Error: The getter 'EventStreamProviders' isn't defined for the class 'WebSocket'.
  • 'WebSocket' is from 'package:web/src/dom/websockets.dart' ('../../../../.pub-cache/hosted/pub.dev/web-0.3.0/lib/src/dom/websockets.dart').
    EventStreamProviders.errorEventSourceEvent.forTarget(this);
    ^^^^^^^^^^^^^^^^^^^^
    Error: Compilation failed.
    Command: /home/rnp/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
    /home/rnp/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot
    --platform-binaries=/home/rnp/snap/flutter/common/flutter/bin/cache/flutter_web_sdk/kernel --invoker=flutter_tool -Ddart.vm.product=true
    -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/22b600f240548c1cf6f5d3f9ae65a5c9e51bc443/
    --native-null-assertions --no-source-maps -o
@ambitencourt
Copy link

Palliative solution:
dependency_overrides:
web_socket_channel: 2.4.0

#316

@devoncarew
Copy link
Member

Thanks for the report! De-duping this with #318.

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

3 participants