Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

picker.js:1 Uncaught (in promise) TypeError: n is not a function at picker.js:1 #241

Open
kopchickm opened this issue May 2, 2021 · 1 comment

Comments

@kopchickm
Copy link

This is happening maybe 10% of time when uploading multiple images via the filestack picker.

The offending JS appears to be:

var r=n({tile:200});

Which could be in the resizing code, but since it's minified, it's hard to tell :)
I can't find a single cause for the bug occuring - it seems to happen irrespective of file size or number of files.

I'm loading filestack in the via:

<%= filestack_js_include_tag %>
<%= filestack_js_init_tag %>

And my uploader is using filestack_picker_element with the following options:

pickerOptions: {
  accept: 'image/*',
  fromSources: ['local_file_system'],
  storeTo: {
    location: "gcs",
    container: ENV["cloud_storage_bucket"],
    path: "images/#{model_id}/#{key}/"
  },
  maxFiles: max_files,
  imageMax: [1024, 728]
},
id: "fp-#{model}-#{key}"

Thanks!

@kopchickm
Copy link
Author

kopchickm commented May 13, 2021

It looks like setting concurrency to 1 fixes the issue, if that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant