espresso3389 / pdfrx

pdfrx is yet another PDF viewer implementation that built on the top of pdfium. The plugin currently supports Android, iOS, Windows, macOS, Linux, and Web.
MIT License
62 stars 38 forks source link

Error building for web #76

Closed Yoda-Man closed 3 months ago

Yoda-Man commented 3 months ago

Target dart2js failed: ProcessException: Process exited abnormally with exit code 1: ../../../.pub-cache/hosted/pub.dev/pdfrx-0.4.10/lib/src/widgets/pdf_page_text_overlay.dart:95:7: Error: The non-abstract class '_PdfTextRenderBox' is missing implementations for these members:

espresso3389 commented 3 months ago

Duplicate of #52 Are you using master or beta? Or recently released 3.19?

Yoda-Man commented 3 months ago

Recently released 3.19

espresso3389 commented 3 months ago

OK, anyway, 0.4.29 or later has fixed the issue. I recommend you should use 1.0.0+.

Yoda-Man commented 3 months ago

thanks I see its got an [ANALYSIS ISSUE]

espresso3389 commented 3 months ago

I don't know actually, but it seems to be an analyzer issue??

image

Yoda-Man commented 3 months ago

if you put sdk: '>=3.2.5 <4.0.0' problem the message will go away

espresso3389 commented 3 months ago

Yes, but then, pdfrx now uses API introduced on 3.3.0-somewhere... How do I determine that...

Yoda-Man commented 3 months ago

Oh snap so leave it the way it is the message will go away on its own in about 2 months

espresso3389 commented 3 months ago

https://github.com/dart-lang/web/blob/main/pubspec.yaml#L7

image

espresso3389 commented 3 months ago

Oh, web 0.5.0 depends on somewhat earlier version

https://github.com/dart-lang/web/blob/a54a1f0447979f9a3ea220199eca849ffb214e91/pubspec.yaml

image

OK, I'll change the version to 3.3.0-76.0.dev anyway.

espresso3389 commented 3 months ago

1.0.2 get back to the 3.3 beta :(

image

espresso3389 commented 3 months ago

Again, get another :(

image

espresso3389 commented 3 months ago

1.0.3 changes flutter version...

espresso3389 commented 3 months ago

I've created an issue on dart-lang/pub-dev.

espresso3389 commented 3 months ago

1.0.4 did rollback everything to pre-Flutter 3.19/Dart 3.3 environment...

espresso3389 commented 3 months ago

Mmm... The things is so complicated :(

image

espresso3389 commented 3 months ago

I've added the following note to README.md anyway:

NOTE: On pub.dev, 1.0.0+ versions gets [ANALYSIS ISSUE]. It does not affect your code consistency but API reference is not available until pub.dev upgrades their toolchains.

espresso3389 commented 3 months ago

The version discussion is moved to #77.