ReferenceError: regeneratorRuntime is not defined
Mruzo opened this issue · 2 comments
Mruzo commented
Hi, i'm following your Intro to React cours on Frontend Masters(currently at One-way data flow) but when I hit the submit button, the list of pets don't show. the error in my console is;
ReferenceError: regeneratorRuntime is not defined2 app.c328ef1a.js:30162:5
_requestPets app.c328ef1a.js:30162
requestPets app.c328ef1a.js:30158
onSubmit app.c328ef1a.js:30209
callCallback React
invokeGuardedCallbackDev app.c328ef1a.js:3668
invokeGuardedCallback app.c328ef1a.js:3721
invokeGuardedCallbackAndCatchFirstError React
executeDispatch app.c328ef1a.js:3821
React 5
runExtractedPluginEventsInBatch app.c328ef1a.js:6966
handleTopLevel React
batchedEventUpdates$1 app.c328ef1a.js:25156
batchedEventUpdates React
dispatchEventForLegacyPluginEventSystem app.c328ef1a.js:7020
attemptToDispatchEvent React
dispatchEvent app.c328ef1a.js:7661
bind_applyFunctionN self-hosted:1042
dispatchEvent self-hosted:1005
React 2
discreteUpdates$1 app.c328ef1a.js:25173
React 2
bind_applyFunctionN self-hosted:1042
dispatchDiscreteEvent self-hosted:1005
React 6
completeUnitOfWork app.c328ef1a.js:25484
performUnitOfWork app.c328ef1a.js:25457
workLoopSync app.c328ef1a.js:25422
performSyncWorkOnRoot app.c328ef1a.js:25040
scheduleUpdateOnFiber app.c328ef1a.js:24472
updateContainer app.c328ef1a.js:27621
legacyRenderSubtreeIntoContainer app.c328ef1a.js:28004
unbatchedUpdates app.c328ef1a.js:25190
legacyRenderSubtreeIntoContainer app.c328ef1a.js:28003
render app.c328ef1a.js:28086
parcelRequire<["app.js"]< app.c328ef1a.js:30246
newRequire React
parcelRequire searchparams.js:17
<anonymous> searchparams.js:41
what does this mean?
i've gone through my code like 5times, and I can't see any differences with yours.
NaLogos commented
im having the same problem.
Edit : adding import "regenerator-runtime/runtime.js";
to the top of the SearchParams.js file worked for me.
johncoleman83 commented
Thanks, I used this same suggestion to resolve the error that occurred when clicking the submit button
Uncaught ReferenceError: regeneratorRuntime is not defined