Open baigsapp opened 1 year ago
Are you using the stable version of Flutter?
Does it happen on android build?
After two days of hard work and finding the bug I finally modified this file and commented out all the data in this file and now I have it working properly.
/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart
You saved me a lot of time. Thanks!
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... /C:/Users/Lenovo%20Ideapad/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart:3:8: Error: Dart library 'dart:html' is not available on this platform. import 'dart:html'; ^ Context: The unavailable library 'dart:html' is imported through these packages:
Detailed import paths for (some of) the these imports:
package:woocommerce_app/main.dart => package:woocommerce_app/screen/home.dart => package:woocommerce_app/screen/dashboard_page.dart => package:woocommerce_app/widgets/widget_home_categories.dart => package:woocommerce_app/screen/product_page.dart => package:woocommerce_app/widgets/widget_product_card.dart => package:woocommerce_app/screen/product_details.dart => package:get/get_connect/sockets/src/sockets_html.dart => dart:html
package:woocommerce_app/main.dart => package:woocommerce_app/screen/home.dart => package:woocommerce_app/screen/dashboard_page.dart => package:woocommerce_app/widgets/widget_home_products.dart => package:woocommerce_app/screen/product_details.dart => package:get/get_connect/sockets/src/sockets_html.dart => dart:html package:woocommerce_app/main.dart => package:woocommerce_app/screen/product_page.dart => package:woocommerce_app/widgets/widget_product_card.dart => package:woocommerce_app/screen/product_details.dart => package:get/get_connect/sockets/src/sockets_html.dart => dart:html
/C:/Users/Lenovo%20Ideapad/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart:10:3: Error: Type 'WebSocket' not found. WebSocket socket; ^^^^^^^^^ /C:/Users/Lenovo%20Ideapad/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart:10:3: Error: 'WebSocket' isn't a type. WebSocket socket; ^^^^^^^^^ /C:/Users/Lenovo%20Ideapad/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart:36:16: Error: The method 'WebSocket' isn't defined for the class 'BaseWebSocket'.
'BaseWebSocket' is from 'package:get/get_connect/sockets/src/sockets_html.dart' ('/C:/Users/Lenovo%20Ideapad/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart'). Try correcting the name to the name of an existing method, or defining a method named 'WebSocket'. socket = WebSocket(url);
/C:/Users/Lenovo%20Ideapad/AppData/Local/Pub/Cache/hosted/pub.dev/get-4.6.5/lib/get_connect/sockets/src/sockets_html.dart:103:49: Error: The getter 'WebSocket' isn't defined for the class 'BaseWebSocket'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'WebSocket'. if (socket != null && socket!.readyState == WebSocket.OPEN) { ^^^^^^^^^ Unhandled exception: FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file: and data: URIs)
0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:34:7)
1 asFileUri (package:vm/kernel_front_end.dart:654:37)
2 writeDepfile (package:vm/kernel_front_end.dart:794:21)