Questions tagged [regenerator-runtime]
6 questions
1
vote
2 answers
ReferenceError: regeneratorRuntime is not defined when running testing
I am trying to figure out how to add testing to my React application. I am using React Testing Library. I am getting this error ReferenceError: regeneratorRuntime is not defined when I try and run the test.
This is what the test file looks…

dmikester1
- 1,374
- 11
- 55
- 113
0
votes
1 answer
Getting error: ReferenceError: regeneratorRuntime is not defined while using react-speech-recognition in nextjs13
I'm getting the errorReferenceError: regeneratorRuntime is not defined in nextJS13
I am using Redux toolkit.
Link to my project. Note: the code where I get the error is under the nextjsfrontend branch.
I'm a beginner at web dev, and especially…

Leotheperegrine
- 1
- 2
0
votes
0 answers
Regenerator runtime error when using react-router-dom in react
I am trying to install the react-router-dom package to my react application and when I try to wrap BrowserRoute around my App component. I get this error
Uncaught ReferenceError: regeneratorRuntime is not defined
at main.js:19661:699
at…

kiooikml
- 307
- 1
- 7
0
votes
0 answers
Is there a way to get rid of `regenerator-runtime/runtime` in jest tests?
I am using react-native-testing-library in order to test my app, and I found out that "regenerator-runtime/runtime" swallows critical errors in my app, so I am trying now to get rid of it. I also found out that react-native/jest/setup.js brings this…

niryo
- 1,275
- 4
- 15
- 26
0
votes
1 answer
Exclude "@babel/plugin-transform-regenerator" from "metro-react-native-babel-preset"
I am using metro-react-native-babel-preset, but I need to exclude @babel/plugin-transform-regenerator. I tried all sort of things, but nothing works. I suspect that the issue is that metro-react-native-babel-preset requires the plugin directly, like…

niryo
- 1,275
- 4
- 15
- 26
-1
votes
1 answer
React - Enzyme mount throwing regeneratorRuntime is not defined error
I am trying to test the following component:
class SearchComp extends Component {
constructor(props){
super(props);
this.state = {
data: [],
filter: {
…

sotn
- 1,833
- 5
- 35
- 65