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

Default livewire components not available anymore #9

Open
eyetractive opened this issue Jan 4, 2025 · 2 comments
Open

Default livewire components not available anymore #9

eyetractive opened this issue Jan 4, 2025 · 2 comments

Comments

@eyetractive
Copy link

In my app, I have two sets of Livewire components. Some within the app itself, and some coming from a package. I'm using your module to load those from the package like this:

Livewire::componentNamespace('MyVendorName\MyPackageName\Livewire', 'vendorname');

Previously, using version 1.0.0 of your package, I could then use both of these

  1. @livewire('vendorname:image-gallery')
  2. @livewire('some-local-folder.some-local-class')

Since the update from 1.0.0 => 1.3.1, number 2 only works if number 1 isn't called before it (in previous lines in the blade template).

Is there no support (anymore) for including livewire components under App\Livewire without an explicit prefix? I have tried setting an empty prefix, but this is not working either.

@joserick
Copy link
Owner

joserick commented Jan 4, 2025

Hello @eyetractive

I'm on a trip now but I'll check tomorrow and try to replicate the problem, in the meantime you can run php artisan livewire-discover:list to see if all external Livewires are loaded correctly, as Livewire-Discover is only called after checking that the class (file) you require does not exist inside App/Livewire.

@eyetractive
Copy link
Author

Thank you @joserick

If i run the livewire-discover:list command, it only shows the namespaced/prefixed (manually defined) items. I can of course add an entry like 'app' with namespace 'App\Livewire', but then I'd have to change code everywhere to app:some-local-class.

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

2 participants