cloudinary-laravel icon indicating copy to clipboard operation
cloudinary-laravel copied to clipboard

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

Open iamgoodbytes opened this issue 2 years ago • 7 comments

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?

iamgoodbytes avatar May 18 '23 08:05 iamgoodbytes

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

miteyema avatar May 31 '23 06:05 miteyema

@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

uhexos avatar Oct 12 '23 18:10 uhexos

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

unicodeveloper avatar Oct 12 '23 19:10 unicodeveloper

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

uhexos avatar Oct 12 '23 19:10 uhexos

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: @.***>

unicodeveloper avatar Oct 12 '23 19:10 unicodeveloper

ahh I see

uhexos avatar Oct 12 '23 19:10 uhexos

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

brammittendorff avatar Nov 09 '23 22:11 brammittendorff