meinstein / react-file-picker

Sensible file input wrappers. Demo included.
19 stars 15 forks source link

regeneratorRuntime is not defined #2

Open achhranitesh opened 6 years ago

achhranitesh commented 6 years ago

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

But FilePicker works properly. Can any one help

AlexandrDobrovolskiy commented 6 years ago

same

xxdondi commented 5 years ago

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'
 ],
<...>
meinstein commented 5 years ago

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

anzioka commented 5 years ago

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)}

<div style={{height: 200px, width: 100px}} /> `

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