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: Method not found: 'allowInterop' #268

Closed
ivanesi opened this issue Dec 28, 2023 · 6 comments
Closed

Error: Method not found: 'allowInterop' #268

ivanesi opened this issue Dec 28, 2023 · 6 comments
Labels

Comments

@ivanesi
Copy link

ivanesi commented Dec 28, 2023

record: ^5.0.4

Launching lib/main.dart on Chrome in debug mode...
main.dart:1
: Error: Method not found: 'allowInterop'.
media_recorder_delegate.dart:112
      mediaRecorder.ondataavailable = jsu.allowInterop(_onDataAvailable);
                                          ^^^^^^^^^^^^
: Error: Method not found: 'allowInterop'.
media_recorder_delegate.dart:113
      mediaRecorder.onstop = jsu.allowInterop(_onStop);
                                 ^^^^^^^^^^^^
: Error: Method not found: 'allowInterop'.
mic_recorder_delegate.dart:145
    recorder.port.onmessage = jsu.allowInterop(
                                  ^^^^^^^^^^^^
Failed to compile application.
Exited
@SuryaSharpsell
Copy link

Facing same issue with this version while running on chrome

@llfbandit
Copy link
Owner

hmm, I don't know what to say.
js is a dependency of this package where allowInterop comes from...

@aayushsaajtak
Copy link

has someone resolved it?

@llfbandit llfbandit added the web label Mar 26, 2024
@amirmhmdi
Copy link

any update ?

@amirmhmdi
Copy link

It solved in this PR #308

@llfbandit
Copy link
Owner

I close this since the package will be migrated to package web in next version.

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

No branches or pull requests

5 participants