-
-
Notifications
You must be signed in to change notification settings - Fork 124
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 when using startListening #4
Comments
I'd be happy to help. Can you share the code where you are using |
I tried doing something like this |
I have made a component that renders virtually the same as yours, but was unable to reproduce this error. A few more questions to help me determine the issue:
|
Were you able to resolve this, @kejtizuki? |
Yeah actually if I use it without defining options it works, but if I want to use it with options:
Than it gives me this error. Sorry for late response but I just wasn't working on this earlier.. |
And to answer your questions. Yes, I'm using setState in handleChange method. bundle.js:61568 Uncaught TypeError: Cannot read property 'setState' of undefined |
I haven't been able to reproduce this so far. It's especially baffling that the error only occurs when passing in options. On that note, I can point out one thing you can fix. The only option that does anything is
The error you see occurs when a class method isn't bound to any context (this is why you need to do things like Perhaps If I run out of ideas, I'll try replacing my |
Sorry I think I confused it a bit. I also get this error when I use the code that you put above, however (using the code from above from your comment) I don't get the error when I click on start but now I get it in stopListening. Uncaught TypeError: Cannot read property 'setState' of undefined If I use the same code with options I'm getting an error about startListening. Uncaught TypeError: Cannot read property 'disconnect' of undefined |
I'm still unable to reproduce this. I can see that there's a context binding problem within the Are you able to share the list of Don't worry, I'm not going to give up just yet! :) |
Hi, |
Hi again, https://github.com/takanabe/react-redux-material_ui-boilerplate Hope it helps in the debugging process. |
Thank you for providing this information and being so patient! The reason I asked for your The boilerplate you shared includes that older version of the hot loader, so I would wager that that's the cause. Try upgrading On my side, I should really stop depending on |
Thank you. I updated react-hot-loader and there is no error anymore 🙂 |
Hi,
I've added this in my code:
I want to create the button which will enable speech recognition on click. I tried using the 'startListening' function but it's not working for me. I'm getting the error cannot read property 'setState' of undefined at startListening. Could you help me with that? I'm new to react so maybe it's just my mistake...
The text was updated successfully, but these errors were encountered: