record icon indicating copy to clipboard operation
record copied to clipboard

Error: Method not found: 'allowInterop'

Open ivanesi opened this issue 1 year ago • 3 comments

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

ivanesi avatar Dec 28 '23 14:12 ivanesi

Facing same issue with this version while running on chrome

SuryaSharpsell avatar Jan 02 '24 17:01 SuryaSharpsell

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

llfbandit avatar Jan 18 '24 14:01 llfbandit

has someone resolved it?

aayushsaajtak avatar Feb 16 '24 11:02 aayushsaajtak

any update ?

amirmhmdi avatar Apr 28 '24 13:04 amirmhmdi

It solved in this PR https://github.com/llfbandit/record/pull/308

amirmhmdi avatar Apr 29 '24 07:04 amirmhmdi

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

llfbandit avatar May 17 '24 14:05 llfbandit