react-file-picker icon indicating copy to clipboard operation
react-file-picker copied to clipboard

regeneratorRuntime is not defined

Open achhranitesh opened this issue 6 years ago • 4 comments

Getting 'regeneratorRuntime is not defined' error when using ImagePicker.

But FilePicker works properly. Can any one help

achhranitesh avatar May 21 '18 12:05 achhranitesh

same

AlexandrDobrovolskiy avatar Jul 22 '18 10:07 AlexandrDobrovolskiy

You probably need to install babel-polyfill and use it in your project. If you build with webpack specify it as an entry point in your config:

<...>
entry: [
   'babel-polyfill',
   './index.web.js'
],
<...>

xxdondi avatar Dec 26 '18 14:12 xxdondi

I've updated the build config and this should be resolved as of v0.0.6

meinstein avatar Mar 26 '19 20:03 meinstein

Still running into a problem with ImagePicker when I try to print the base64 string to the console onChange. Here is part of my code:

`<ImagePicker extensions={['jpg' ,'jpeg' ,'png']} onChange = {base64 => console.log(base64)} >

`

Here is the error I get every time I select an image: console

anzioka avatar May 18 '19 12:05 anzioka