fluttercandies / extended_image_library

package library for extended_image, extended_text and extended_text_field,provide common base class.

Home Page:https://pub.dev/packages/extended_image_library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug report] Cannot build for web

gwbischof opened this issue · comments

Version

3.6.0

Platforms

Web

Device Model

Web

flutter info

[✓] Flutter (Channel beta, 3.16.0-0.4.pre, on Linux Mint 21.2 5.15.0-86-generic, locale
    en_US.UTF-8)
    • Flutter version 3.16.0-0.4.pre on channel beta at /media/gbischof/data3/code/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 379c3f4d37 (4 days ago), 2023-11-01 11:34:49 -0700
    • Engine revision abdaabc6dc
    • Dart version 3.2.0 (build 3.2.0-210.4.beta)
    • DevTools version 2.28.1

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed
      instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE =
      /var/lib/flatpak/app/com.google.Chrome/x86_64/stable/8d4b20f7f06fa7513476fef10de47844d6
      b2debc10c23d19b494db5d2032153d/files/bin/chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1.1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/linux#android-setup for detailed
      instructions).

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux Mint 21.2 5.15.0-86-generic
    • Chrome (web)    • chrome • web-javascript • unknown

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 2 categories.

How to reproduce?

flutter build web

Logs

Target dart2js failed: ProcessException: Process exited abnormally:
/home/gbischof/.pub-cache/hosted/pub.dev/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': Error
reading '../flutter/packages/flutter/lib/src/services/dom.dart'  (No such file or directory)
import 'package:flutter/src/services/dom.dart';
       ^
/home/gbischof/.pub-cache/hosted/pub.dev/extended_image_library-3.6.0/lib/src/network/network
_image_web.dart:20:30:
Error: Type 'DomXMLHttpRequest' not found.
typedef HttpRequestFactory = DomXMLHttpRequest Function();
                             ^^^^^^^^^^^^^^^^^
/home/gbischof/.pub-cache/hosted/pub.dev/extended_image_library-3.6.0/lib/src/network/network
_image_web.dart:23:1:
Error: Type 'DomXMLHttpRequest' not found.
DomXMLHttpRequest _httpClient() {
^^^^^^^^^^^^^^^^^

Example code (optional)

No response

Contact

No response

This error happens on the flutter beta and master channels, but works on the stable channel

This now fails on the stable channel. But the latest version of extended_image fixes it