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: Function converted via 'toJS' #55

Open
rmasarovic opened this issue Dec 12, 2024 · 4 comments
Open

Error: Function converted via 'toJS' #55

rmasarovic opened this issue Dec 12, 2024 · 4 comments

Comments

@rmasarovic
Copy link

Hi when update flutter to Flutter 3.27.0 , i have multiple error with Error: Function converted via 'toJS'.
for example
media_stream_track_impl.dart:13:68: Error: Function converted via 'toJS' contains invalid types in its function signature: '*dynamic* Function(*dynamic*)'.

@qqtb
Copy link

qqtb commented Dec 12, 2024

f27d27c fixes this for me.

so for the time being i use:

dependency_overrides:
  dart_webrtc:
    git:
      url: https://github.com/flutter-webrtc/dart-webrtc.git
      ref: f27d27c7af41ceeebe31b295af4fb38e7b4d793e

@rmasarovic
Copy link
Author

here is PR #54 for this error

@EvertonMJunior
Copy link

+1 on this

@ibro2002
Copy link

i'm getting this

../../../.pub-cache/hosted/pub.dev/dart_webrtc-1.4.9/lib/src/rtc_data_channel_impl.dart:34:11: Error: Function converted via 'toJS' contains invalid types in its function signature: 'Future Function(MessageEvent)'.
Use one of these valid types instead: JS types from 'dart:js_interop', ExternalDartReference, void, bool, num, double, int, String, extension types that erase to one of these types, '@staticInterop' types, 'dart:html' types when compiling to JS, or a type parameter that is a subtype of a valid non-primitive type.
}.toJS,

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

4 participants