question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught ReferenceError: regeneratorRuntime is not defined

See original GitHub issue

I am using async/await in my vue app When I run my app on browser, it gives me the this error and a blank page

Uncaught ReferenceError: regeneratorRuntime is not defined
    at eval (checkout.vue?./node_modules/babel-loader/lib?{"presets":["env"],"plugins":["transform-object-rest-spread"]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0:154)
    at eval (checkout.vue?./node_modules/babel-loader/lib?{"presets":["env"],"plugins":["transform-object-rest-spread"]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0:262)
    at Object../node_modules/babel-loader/lib/index.js?{"presets":["env"],"plugins":["transform-object-rest-spread"]}!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/assets/vue/pages/checkout.vue (ecdc800cf1d306b950fb.main.js:1102)
    at __webpack_require__ (ecdc800cf1d306b950fb.main.js:679)
    at fn (ecdc800cf1d306b950fb.main.js:89)
    at eval (checkout.vue:4)
    at Object../src/assets/vue/pages/checkout.vue (ecdc800cf1d306b950fb.main.js:3928)
    at __webpack_require__ (ecdc800cf1d306b950fb.main.js:679)
    at fn (ecdc800cf1d306b950fb.main.js:89)
    at eval (routes.js:8)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

30reactions
caiobioderecommented, Mar 6, 2018

hey, @adnanmasd I found your situation here:

babel-polyfill is required. You must also install it in order to get async/await working. npm install – save babel-polyfill

Then in your main.js just import it: import babelPolyfill from ‘babel-polyfill’

Reference: https://stackoverflow.com/questions/33527653/babel-6-regeneratorruntime-is-not-defined

1reaction
RayendraSabandarcommented, Sep 9, 2021

Works instantly. Thanks a lot

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix regeneratorRuntime is not defined?
I have ran into a problem, the error is regeneratorRuntime is not defined while working with React and Parcel bundler.
Read more >
Babel 6 regeneratorRuntime is not defined - Stack Overflow
I did not need babel-runtime to get async await working. Is that correct? Edit: I'm running the code server side. :) – GijsjanB....
Read more >
ReferenceError regeneratorRuntime is not defined · Issue #9849
I'm building an SSR template, and when I use @babebl/register and then execute webpack (config), the system reported an error.
Read more >
Parcel, how to fix the `regeneratorRuntime is not defined` error
I run into this problem in a project using Babel as soon as I added an async function, but the problem is the...
Read more >
Blank Admin Page: regeneratorRuntime is not defined (babel?)
Uncaught ReferenceError : regeneratorRuntime is not defined ... Still experiencing the issue while deploying with Heroku, no idea how to fix ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found