Not able to user Spatie Livewire Comments with Filament v3

I am trying to load Livewire Comments styles and scripts but i get a warning the scripts are loaded before Alpine.
public function boot(): void
{
FilamentView::registerRenderHook(
'panels::head.end',
fn (): string => Blade::render('<x-comments::styles />'),
);

FilamentView::registerRenderHook(
'panels::head.end',
fn (): string => Blade::render('<x-comments::scripts />'),
);
}
public function boot(): void
{
FilamentView::registerRenderHook(
'panels::head.end',
fn (): string => Blade::render('<x-comments::styles />'),
);

FilamentView::registerRenderHook(
'panels::head.end',
fn (): string => Blade::render('<x-comments::scripts />'),
);
}
Solution:
Somehow I am able to load the comments component. Instead of loading the <x-comments::scripts /> which pushes scripts to a stack @comments-scripts I created a custom component and load script directly without pushing to any stack but now there is styling conflict with filament forms.css...
Jump to solution
4 Replies
Mansoor Khan
Mansoor KhanOP16mo ago
krekas
krekas16mo ago
Is this package upgraded to use v3 livewire?
Mansoor Khan
Mansoor KhanOP16mo ago
I am using: "spatie/laravel-comments-livewire": "^2.0@beta", The beta version is supposed to work with Livewire3
Solution
Mansoor Khan
Mansoor Khan16mo ago
Somehow I am able to load the comments component. Instead of loading the <x-comments::scripts /> which pushes scripts to a stack @comments-scripts I created a custom component and load script directly without pushing to any stack but now there is styling conflict with filament forms.css
Want results from more Discord servers?
Add your server