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

Building with flutter for web fails #5

Closed
tchavet opened this issue Jun 13, 2020 · 2 comments
Closed

Building with flutter for web fails #5

tchavet opened this issue Jun 13, 2020 · 2 comments

Comments

@tchavet
Copy link

tchavet commented Jun 13, 2020

When building with flutter for web I get the following error:

Target dart2js failed: Exception: /opt/flutter/.pub-cache/hosted/pub.dartlang.org/assorted_layout_widgets-1.1.1/lib/src/minimum_raggedness.dart:20:61:

Error: The integer literal 9223372036854775807 can't be represented exactly in JavaScript.
    List<num> minimum = [0]..addAll(List<num>.filled(count, 9223372036854775807));
                                                            ^^^^^^^^^^^^^^^^^^^
/opt/flutter/.pub-cache/hosted/pub.dartlang.org/assorted_layout_widgets-1.1.1/lib/src/minimum_raggedness.dart:26:16:
Error: The integer literal 9223372036854775806 can't be represented exactly in JavaScript.
        return 9223372036854775806;
               ^^^^^^^^^^^^^^^^^^^
Error: Compilation failed.

It works fine when compiling for Android

@marcglasberg
Copy link
Owner

Could you please tell me if version 1.1.2 solves the problem? Thanks.

@tchavet
Copy link
Author

tchavet commented Jun 15, 2020

Yes the problem is solved, thank you!

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