JamesBrill / react-speech-recognition

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

ReferenceError: regeneratorRuntime is not defined #157

Closed shubhamp-sf closed 1 year ago

shubhamp-sf commented 1 year ago

Throws below error when running it in next.js environment:

image

Here's my package.json

{
  "name": "---",
  "version": "---",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@emotion/react": "^11.10.6",
    "@emotion/styled": "^11.10.6",
    "@mui/icons-material": "^5.11.9",
    "@mui/material": "^5.11.9",
    "@next/font": "13.1.6",
    "@types/node": "18.13.0",
    "@types/react": "18.0.28",
    "@types/react-dom": "18.0.11",
    "@types/react-speech-recognition": "^3.9.0",
    "eslint": "8.34.0",
    "eslint-config-next": "13.1.6",
    "next": "13.1.6",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-speech-recognition": "^3.10.0",
    "typescript": "4.9.5"
  }
}
shubhamp-sf commented 1 year ago

Duplicate issue: https://github.com/JamesBrill/react-speech-recognition/issues/110