cloudinary-community / cloudinary-laravel

Laravel SDK for Cloudinary
MIT License
255 stars 71 forks source link

Unable to locate a class or view for component [cld-upload-button]. #93

Open iamgoodbytes opened 1 year ago

iamgoodbytes commented 1 year ago

Laravel 10 with latest version of this package running a livewire component that has the following code. (I'm getting the same error when using it in a normal blade file that is not a livewire component)

@cloudinaryJS
<x-cld-upload-button>
            Upload Files
</x-cld-upload-button>

Getting the error Unable to locate a class or view for component [cld-upload-button].

Any idea what could fix this or what the problem might be?

miteyema commented 11 months ago

I had the same problem and I've made a fix, please see https://github.com/cloudinary-devs/cloudinary-laravel/pull/94

uhexos commented 7 months ago

@unicodeveloper I see that PR #94 was merged to fix this issue, this means the documentation is now wrong as the component is called cld_upload_button rather than cld-upload-button

unicodeveloper commented 7 months ago

I wouldn’t say the documentation is wrong. The doc is still very much correct because most people don’t even use Laravel 6 anymore. @uhexos

So there’s really no need to update the doc.

Changing the doc will make it wrong for Laravel 7 to 10 users & 99% of them are using this package

uhexos commented 7 months ago

Maybe I'm doing something wrong then cause the widget wouldn't load and the Unable to locate a class or view for component [cld-upload-button] persisted in a fresh laravel 10 install when using the x-cld-upload-button as the component name.

image

unicodeveloper commented 7 months ago

That’s happening because I haven’t tagged a new release yet.

I’ll tag a new release by weekend that includes the most recent code merge

On Thu, Oct 12, 2023 at 8:33 PM Nwokorobia Ugo @.***> wrote:

Maybe I'm doing something wrong then cause the widget wouldn't load and the Unable to locate a class or view for component [cld-upload-button] persisted in a fresh laravel 10 install when using the x-cld-upload-button as the component name.

[image: image] https://user-images.githubusercontent.com/14164093/274712459-e26db7b8-7e8a-4b50-a61c-3772a6dbda9f.png

— Reply to this email directly, view it on GitHub https://github.com/cloudinary-devs/cloudinary-laravel/issues/93#issuecomment-1760252680, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAWPNUMM2DHJSX4FLY2LXDLX7BA2LANCNFSM6AAAAAAYGFAYNU . You are receiving this because you were mentioned.Message ID: @.***>

uhexos commented 7 months ago

ahh I see

brammittendorff commented 6 months ago

Is there already a new release? The last one is from march right?