-
Notifications
You must be signed in to change notification settings - Fork 157
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
Uncaught (in promise) TypeError: onStartCallback is not a function #16
Comments
I have same issue, could u provide it? |
Hi @keyhole425 I found the solution. Just add onStart prop for <ReactMic like this https://github.com/hackingbeauty/react-mic/blob/master/demo/src/index.js |
Great spot, that fixed it for me too! Thanks. |
Hi everyone. Mark here, author of this package. I started this package because I really wanted the functionality and the visualization; however, people are increasingly using it. The code needs to be refactored and I need to add tests. I'm happy to work with someone else on refactoring the code and establishing the test suite. If you're interested, please ping me at mark.muskardin@gmail.com. Until then, there may be bugs... |
Howdy,
I've just set everything up to use react-mic.. Using react (v15.6.x), react-router (v4.1.x) and the latest version of react-mic (v7.0.8) I get an error: "Uncaught (in promise) TypeError: onStartCallback is not a function". Everything works as expected, until I go to start the audio recorder (via a button click) which is when it errors out (after it recognises that getUserMedia is available). A little digging shows that the issue seems to point to the onStartCallback var in MicrophoneRecorder.js
Here is my first attempt at getting it going:
Is this something on my end (relatively new to React) that I'm missing? Thanks for an otherwise superb library.
Cheers Kyle
The text was updated successfully, but these errors were encountered: