ConnectyCube / connectycube-flutter-sdk-releases

ConnectyCube Flutter SDK Releases
7 stars 1 forks source link

Build Failed Due To Event Stream Not Being Defined #101

Open RonitBanerjee opened 10 months ago

RonitBanerjee commented 10 months ago

Platform (use [x]) [] Web

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

Steps to Reproduce: flutter build web

Logs: ../../../../.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

TatankaConCube commented 10 months ago

what version of the Flutter framework do you use for building the app? please provide the output of the command flutter doctor

To resolve the issue please try the following: