Uncaught TypeError: import_react_speech_recognition.default.startListening is not a function
But when I use this one it works fine:
SpeechRecognition.default.startListening()
I don't know why I need to use the default keyword there. It seems weird. Btw, now typescript is complaining about using the default keyword. Any idea?
Hi, This is how I want to use
startListening
:I get the following error:
But when I use this one it works fine:
I don't know why I need to use the
default
keyword there. It seems weird. Btw, now typescript is complaining about using thedefault
keyword. Any idea?Note:
stopListening
works fine