Gavrisimo
Gavrisimo
FFilament
Created by Gavrisimo on 9/18/2024 in #❓┊help
console error with fresh custom widget
I tried following https://filamentphp.com/docs/3.x/panels/dashboard#custom-widgets to create a simple widget that just shows "HELLO" and I managed to do that but then I started getting this error in the console:
Uncaught Snapshot missing on Livewire component with id: AkxP2EcEmJ0jj1qxmGnC
Uncaught Snapshot missing on Livewire component with id: AkxP2EcEmJ0jj1qxmGnC
The view file is super simple:
<x-filament-widgets::widget>
<x-filament::section>
HELLO
</x-filament::section>
</x-filament-widgets::widget>
<x-filament-widgets::widget>
<x-filament::section>
HELLO
</x-filament::section>
</x-filament-widgets::widget>
Same as the widget:
<?php

namespace App\Filament\Widgets;

use Filament\Widgets\Widget;

class FooBarBaz extends Widget
{
protected static string $view = 'filament.widgets.foo-bar-baz';
}
<?php

namespace App\Filament\Widgets;

use Filament\Widgets\Widget;

class FooBarBaz extends Widget
{
protected static string $view = 'filament.widgets.foo-bar-baz';
}
Once I update my panel to not auto discover widgets or if I delete my widget, the console error goes away. Any idea what/where to look? Thanks!
4 replies