mycurelabs / vue-html2canvas

Vue mixin for Html2Canvas
MIT License
116 stars 23 forks source link

Uncaught ReferenceError: regeneratorRuntime is not defined #3

Closed Leolik closed 6 years ago

Leolik commented 6 years ago

I get this error in console after adding

import Vue from 'vue';
import VueHtml2Canvas from 'vue-html2canvas';

Vue.use(VueHtml2Canvas);

into main.js

Leolik commented 6 years ago

fixed need add babel-polyfill to project

jofftiquez commented 6 years ago

Aaaah the magical babel-polyfill savior of all. Thanks for using this repo @Leolik

vanoneang commented 6 years ago

Is there any other way to avoid babel-polyfill

jofftiquez commented 6 years ago

@vanoneang I am not aware of any other way yet, but as long as we are using async await, we really need babel-polyfill

ateeqrgondal commented 5 years ago

How did you add babel-polyfill in vue cli3 project? I could not make it work.

ateeqrgondal commented 5 years ago

@jofftiquez can you please help.

jofftiquez commented 5 years ago

@ateeqrgondal async await is already built-in in vue cli 3.

ateeqrgondal commented 5 years ago

Thank you @jofftiquez . Can you let me know why I am getting this error then "Uncaught ReferenceError: regeneratorRuntime is not defined" ? When I use vue-html2canvas as Vue.use(html2Canvas), I am getting this error.

jofftiquez commented 5 years ago

@ateeqrgondal I am not getting that error in vue cli 3. :/

ejoo commented 5 years ago

https://www.npmjs.com/package/regenerator-runtime

This also helped me.

jonyedu commented 4 years ago

https://www.npmjs.com/package/regenerator-runtime

Esto también me ayudó.

Muchas gracias, me funciono.