JamesBrill / react-speech-recognition

💬Speech recognition for your React app
https://webspeechrecognition.com/
MIT License
657 stars 119 forks source link

Having issue that `ReferenceError: regeneratorRuntime is not defined` showing for nextjs project #48

Closed singh-anita closed 4 years ago

singh-anita commented 4 years ago

Server Error ReferenceError: regeneratorRuntime is not defined for example: at /node_modules/react-speech-recognition/lib/RecognitionManager.js:168:61

JamesBrill commented 4 years ago

Hi @singh-anita ! The regenerator runtime is needed to run the compiled async/await code in this library. I believe there are a couple of options to add this: