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

[BUG] Error on Chrome. #483

Closed
zhaoxianxin opened this issue Aug 29, 2023 · 0 comments
Closed

[BUG] Error on Chrome. #483

zhaoxianxin opened this issue Aug 29, 2023 · 0 comments
Labels
await investigate The issue is waiting for further investigation. await triage The issue is waiting for triage.

Comments

@zhaoxianxin
Copy link

Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:14:8: Error: Error when reading '../../../../flutter/packages/flutter/lib/src/services/dom.dart': No such file or directory
import 'package:flutter/src/services/dom.dart';
^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:20:30: Error: Type 'DomXMLHttpRequest' not found.
typedef HttpRequestFactory = DomXMLHttpRequest Function();
^^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:23:1: Error: Type 'DomXMLHttpRequest' not found.
DomXMLHttpRequest _httpClient() {
^^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:24:10: Error: Method not found: 'DomXMLHttpRequest'.
return DomXMLHttpRequest();
^^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:153:23: Error: 'DomXMLHttpRequest' isn't a type.
final Completer completer =
^^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:154:21: Error: 'DomXMLHttpRequest' isn't a type.
Completer();
^^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:155:13: Error: 'DomXMLHttpRequest' isn't a type.
final DomXMLHttpRequest request = httpRequestFactory();
^^^^^^^^^^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:165:64: Error: 'DomEvent' isn't a type.
request.addEventListener('load', createDomEventListener((DomEvent e) {
^^^^^^^^
../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:165:40: Error: The method 'createDomEventListener' isn't defined for the class 'ExtendedNetworkImageProvider'.

  • 'ExtendedNetworkImageProvider' is from 'package:extended_image_library/src/network/network_image_web.dart' ('../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'createDomEventListener'.
    request.addEventListener('load', createDomEventListener((DomEvent e) {
    ^^^^^^^^^^^^^^^^^^^^^^
    ../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart:184:20: Error: The method 'createDomEventListener' isn't defined for the class 'ExtendedNetworkImageProvider'.
  • 'ExtendedNetworkImageProvider' is from 'package:extended_image_library/src/network/network_image_web.dart' ('../../../../.pub-cache/hosted/pub.flutter-io.cn/extended_image_library-3.6.0/lib/src/network/network_image_web.dart').
    Try correcting the name to the name of an existing method, or defining a method named 'createDomEventListener'.
    'error', createDomEventListener(completer.completeError));
    ^^^^^^^^^^^^^^^^^^^^^^
    Failed to compile application.

Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.14.0-9.0.pre.48, on macOS 13.4 22F66 darwin-arm64, locale zh-Hans-CN)
! Flutter version 3.14.0-9.0.pre.48 on channel [user-branch] at /Users/tyzl/flutter
Currently on an unknown channel. Run flutter channel to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at
https://flutter.dev/docs/get-started/install.
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.3)
[✓] VS Code (version 1.80.1)
[✓] Connected device (4 available)
[✓] Network resources

@zhaoxianxin zhaoxianxin added the await investigate The issue is waiting for further investigation. label Aug 29, 2023
@github-actions github-actions bot added the await triage The issue is waiting for triage. label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
await investigate The issue is waiting for further investigation. await triage The issue is waiting for triage.
Projects
None yet
Development

No branches or pull requests

1 participant