react-file-picker
react-file-picker copied to clipboard
regeneratorRuntime is not defined
Getting 'regeneratorRuntime is not defined' error when using ImagePicker.
But FilePicker works properly. Can any one help
same
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'
],
<...>
I've updated the build config and this should be resolved as of v0.0.6
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: