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

[web] A value of type 'String' can't be assigned to a variable of type 'JSAny' #1702

Closed
sabin26 opened this issue Jul 29, 2024 · 0 comments · Fixed by #1703
Closed

[web] A value of type 'String' can't be assigned to a variable of type 'JSAny' #1702

sabin26 opened this issue Jul 29, 2024 · 0 comments · Fixed by #1703
Labels
bug Something isn't working needs triage

Comments

@sabin26
Copy link
Contributor

sabin26 commented Jul 29, 2024

Compilation to flutter web failed

Exception

19:56:59.301 | Compiling lib/main.dart for the Web...                             26.7s
19:56:59.301 | Target dart2js failed: ProcessException: Process exited abnormally with exit code 1:
19:56:59.301 | ../.pub-cache/hosted/pub.dev/printing-5.13.1/lib/printing_web.dart:213:124:
19:56:59.301 | Error: A value of type 'String' can't be assigned to a variable of type 'JSAny'.
19:56:59.301 | '''function ${_frameId}_print(){var f=document.getElementById('$_frameId');f.focus();f.contentWindow.print();}''';
19:56:59.301 | ^
19:56:59.301 | Error: Compilation failed.

I believe overriding to web: ^1.0.0 is causing this but I am not sure.

@sabin26 sabin26 added bug Something isn't working needs triage labels Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant