Uncaught ReferenceError: regeneratorRuntime is not defined
See original GitHub issueI 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:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
Works instantly. Thanks a lot