DavBfr / dart_pdf

Pdf creation module for dart/flutter
https://pub.dev/packages/pdf
Apache License 2.0
1.42k stars 633 forks source link

unable build web app with printing 5.13.2 #1719

Closed mbeloded closed 3 months ago

mbeloded commented 3 months ago

Describe the bug

To Reproduce Code snippet to reproduce the behavior:

Waiting for connection from debug service on Chrome...
../../../../../../.pub-cache/hosted/pub.dev/printing-5.13.2/lib/printing_web.dart:217:16: Error: A value of type 'JSString' can't be assigned to a variable of type 'String'.
              .toJS;
               ^
Failed to compile application.

Expected behavior

Screenshots

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.24.0, on macOS 14.5 23F79 darwin-arm64, locale en-UA) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2023.3) [✓] VS Code (version 1.92.0) [✓] Connected device (4 available) [✓] Network resources

• No issues found!

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

ali4fun commented 3 months ago

are you find any solution for this bug? @mbeloded

vagnerac commented 1 month ago

Hello @mbeloded.

Did you apply any solution to this issue? I am still getting same error even using latest version: Local Run Chrome: ../../../../Local/Pub/Cache/hosted/pub.dev/printing-5.13.3/lib/printing_web.dart:217:16: Error: A value of type 'JSString' can't be assigned to a variable of type 'String'.