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

The argument type 'JSString' can't be assigned to the parameter type 'String'. #76

Closed
sAw-hTet-nAing opened this issue Aug 12, 2024 · 9 comments

Comments

@sAw-hTet-nAing
Copy link

sAw-hTet-nAing commented Aug 12, 2024

With Flutter 3.24.0,I'm having this issue in flutter web.
View Img

@Sunilk047
Copy link

I am also getting the same error
IMG_20240812_184320467

@guicima
Copy link

guicima commented Aug 12, 2024

Same here with Flutter 3.22.3

@jerson
Copy link
Owner

jerson commented Aug 12, 2024

seems related to the SDK update, could you use v3.6.3 version in the mid time please

@sAw-hTet-nAing
Copy link
Author

seems related to the SDK update, could you use v3.6.3 version in the mid time please

Sure

@cdawei
Copy link

cdawei commented Aug 14, 2024

If you use Flutter3.24/Dart 3.5, a workaround is to change Line 11 of .pub-cache/hosted/pub.dev/fast_rsa-3.6.4/lib/web/rsa_web.dart from

'assets/packages/fast_rsa/web/assets/worker.js'.toJS,

to

'assets/packages/fast_rsa/web/assets/worker.js',

then rebuild your app.

@sAw-hTet-nAing
Copy link
Author

If you use Flutter3.24/Dart 3.5, a workaround is to change Line 11 of .pub-cache/hosted/pub.dev/fast_rsa-3.6.4/lib/web/rsa_web.dart from

'assets/packages/fast_rsa/web/assets/worker.js'.toJS,

to

'assets/packages/fast_rsa/web/assets/worker.js',

then rebuild your app.

Thank you for the temporary solution. While I do prefer a long-term fix, I'm currently fine with using other versions, except for 3.6.4. I just wanted to report this issue so that the admin is aware. Now that it's been brought to their attention, I'll go ahead and close the issue.

@jerson
Copy link
Owner

jerson commented Aug 17, 2024

Hi @sAw-hTet-nAing could you share the environment from you pubspec.yaml, I just tested in an new empty project and works fine with the toJS

environment:
  sdk: ^3.5.0

@sAw-hTet-nAing
Copy link
Author

Hi,@jerson ,Thanks for the update! My current SDK is as follow.

environment:
  sdk: ">=3.4.3 <4.0.0"

This might be causing the issue. I'll change my SDK version and test again.

@sAw-hTet-nAing
Copy link
Author

Hello @jerson ,

Still having the issue even after changing to sdk: ^3.5.0.
Tried Methods

flutter clean pub cache
flutter clean && flutter pub get
flutter pub upgrade

and also tested by deleting pubspec.lock.
Still having the same issue.

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

5 participants