TryImpossible / flutter_web_optimizer

A optimization tools for flutter web, solved web page loading slow and browser cache problem.
BSD 3-Clause "New" or "Revised" License
92 stars 14 forks source link

Uncaught TypeError: a.substring is not a function #23

Closed Pirer24 closed 7 months ago

Pirer24 commented 1 year ago

Hi! I want to optimize my Flutter web, but the substring has a problem.

Zrzut ekranu 2023-07-21 o 14 59 45

Commands that I used:

flutter gen-l10n
flutter build web -t lib/main_dev.dart --web-renderer html
flutter pub run flutter_web_optimizer optimize --asset-base ./
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.3.1 22E772610a darwin-arm64, locale pl-PL)
    • Flutter version 3.10.6 on channel stable at /opt/homebrew/Caskroom/flutter/2.10.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f468f3366c (9 days ago), 2023-07-12 15:19:05 -0700
    • Engine revision cdbeda788a
    • Dart version 3.0.6
    • DevTools version 2.23.1
TryImpossible commented 1 year ago

@Pirer24 , Are you sure this problem is due to flutter_ web_optimizer plugin?

Pirer24 commented 1 year ago

Yes, because before the optimization app is working

TryImpossible commented 1 year ago

give me a demo please

TryImpossible commented 7 months ago

@Pirer24 , you could try flutter_web_optimizer 1.4.0 version