cloudinary icon indicating copy to clipboard operation
cloudinary copied to clipboard

CldUploadWidget has onResult as a required prop

Open rytakei1 opened this issue 10 months ago • 1 comments

Version

@nuxtjs/cloudinary "^4.0.0" nuxt: "^3.16.1"

Steps to reproduce

Add CldUploadWidget without @result and Nuxt will display an error that it's missing a necessary prop

What is Expected?

onResult is not in eventProps in the docs: https://cloudinary.nuxtjs.org/components/clduploadwidget and seems inconsistent at times for me (sometimes the callback is not called after uploading). onSuccess seems to work more reliably, so maybe we could change this one to required?

rytakei1 avatar Mar 26 '25 05:03 rytakei1

Hey,

Thanks for opening that bug report but I am not sure how you are getting this error about missing a necessary prop. https://x.com/cloudinary/status/1907396530425790613 -> Here is the video I recently recorded for Cloudinary about the Nuxt module and the error is not there.

Would you be able to provide more details about your code sample (maybe a reproduction link in stackblitz where the problem occurs)?

It can be related to the fact that some time ago we have changed the way of registering types to the third party package so maybe the types have changed there?

Baroshem avatar Apr 03 '25 09:04 Baroshem