Jesus Vidales
Joined
Activity
Hi, when I do this in an app with Rails 6. I get the following error: Uncaught TypeError: Cannot read properties of undefined (reading 'enableFormElements').
When I have the following line in the javascript code $.rails.enableFormElements($("#new_product"));
Hey, great cast, it is really useful for a project i'm currently working on. I just have one tiny problem. When i get to the uppy.reset() part, I'm getting the following error:
[Uppy] [17:41:28] Error: Can’t set state for uppy-screen/shot/2020/05/08/at/2/48/50/png-10-10-1d-1d-10-10-1e-1e-1e-image/png-1117029-1588924136020 (the file could have been removed)
Here's how I'm currently using it:
uppy.on('complete', (result) => {
element.querySelectorAll('[data-pending-upload]').forEach(element => element.parentNode.removeChild(element))
result.successful.forEach(file => {
appendUploadedFile(element, file, field_name)
setPreview(element, file)
})
uppy.reset()
})
Not sure if I'm missing something.
I cant find out how to paste code in this forum so I'm sorry if it looks all messy.
Hey Chris, or anyone with the knowledge. Can i reference this video to use a purchased theme on rails 6? Thanks in advance!