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

Issue with Laravel Jetstream #95

Closed
RibesAlexandre opened this issue Sep 22, 2023 · 6 comments
Closed

Issue with Laravel Jetstream #95

RibesAlexandre opened this issue Sep 22, 2023 · 6 comments

Comments

@RibesAlexandre
Copy link
Contributor

RibesAlexandre commented Sep 22, 2023

Hi,

When you try to use this package with a layout extend by Laravel JetStram default layout. You got a Javascript error :

Uncaught (in promise) Component not found: JJ8Yux7OzeM3ZVAnkGOG

Steps to reproduce :

  • Install a fresh Laravel app
  • Install Filament
  • Install Laravel Jetstream
  • Install Fabricator
  • Try to preview a created page and after try to make an action

I've tried with theses steps and got this error. Is seems we can not use the preview with a template which contains livewire components.

EDIT : When I remove @livewire('navigation-menu') it works perfectly. I've tried to use Filament Hook like this :

{{ \Filament\Support\Facades\FilamentView::renderHook('filament-fabricator::menu') }}
FilamentView::registerRenderHook(
    'filament-fabricator::menu',
    fn (): string => Blade::render('@livewire(\'navigation-menu\')'),
);

But got the same error

Any solution to fix this ?

Thanks,

@Z3d0X

This comment was marked as outdated.

@RibesAlexandre

This comment was marked as outdated.

@pboivin
Copy link
Contributor

pboivin commented Sep 25, 2023

Hey friends. Seems to be an issue with Peek and/or Livewire. At a glance, it looks like the Livewire components inside of the preview are not properly cleaned up when the preview modal is closed. I'll keep testing.

@pboivin

This comment was marked as outdated.

@pboivin
Copy link
Contributor

pboivin commented Oct 10, 2023

@Z3d0X There is now a workaround for this issue available in Peek v2.2.0.

It's documented here: pboivin/filament-peek#107

@Z3d0X Z3d0X closed this as completed Oct 14, 2023
@RibesAlexandre
Copy link
Contributor Author

It works perfectly ! 👍

Great job,
Thanks you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants