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

Error building for web #76

Closed
Yoda-Man opened this issue Feb 16, 2024 · 18 comments
Closed

Error building for web #76

Yoda-Man opened this issue Feb 16, 2024 · 18 comments

Comments

@Yoda-Man
Copy link

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:

  • Selectable.boundingBoxes
    class _PdfTextRenderBox extends RenderBox with Selectable, SelectionRegistrant {
    ^^^^^^^^^^^^^^^^^
    ../../../snap/flutter/common/flutter/packages/flutter/lib/src/rendering/selection.dart:147:18:
    Info: 'Selectable.boundingBoxes' is defined here.
    List get boundingBoxes;
    ^^^^^^^^^^^^^
    Error: Compilation failed.
    Command: /home/ind/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev
    /home/ind/snap/flutter/common/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.snapshot
    --platform-binaries=/home/ind/snap/flutter/common/flutter/bin/cache/flutter_web_sdk/kernel --invoker=flutter_tool -Ddart.vm.product=true
    -DFLUTTER_WEB_AUTO_DETECT=true -DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/04817c99c9fd4956f27505204f7e344335810aed/
    --native-null-assertions --no-source-maps -o /home/ind/Documents/Mobile/sc/.dart_tool/flutter_build/846120b4c5c0513ff1e25f1352e8304a/app.dill
    --packages=.dart_tool/package_config.json --cfe-only /home/ind/Documents/Mobile/sc/.dart_tool/flutter_build/846120b4c5c0513ff1e25f1352e8304a/main.dart
@espresso3389
Copy link
Owner

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

@Yoda-Man
Copy link
Author

Recently released 3.19

@espresso3389
Copy link
Owner

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

@Yoda-Man
Copy link
Author

thanks I see its got an [ANALYSIS ISSUE]

@espresso3389
Copy link
Owner

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

image

@Yoda-Man
Copy link
Author

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

@espresso3389
Copy link
Owner

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

@Yoda-Man
Copy link
Author

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

@espresso3389
Copy link
Owner

@espresso3389
Copy link
Owner

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
Copy link
Owner

1.0.2 get back to the 3.3 beta :(

image

@espresso3389
Copy link
Owner

Again, get another :(

image

@espresso3389
Copy link
Owner

1.0.3 changes flutter version...

@espresso3389
Copy link
Owner

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

@espresso3389
Copy link
Owner

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

@espresso3389
Copy link
Owner

Mmm... The things is so complicated :(

image

@espresso3389
Copy link
Owner

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
Copy link
Owner

The version discussion is moved to #77.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants