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!
Solution:
it turns out that the issue was caused by spatie/laravel-blade-comments package, just by removing it I was able to get rid of this error
Jump to solution
2 Replies
Solution
Gavrisimo
Gavrisimo4mo ago
it turns out that the issue was caused by spatie/laravel-blade-comments package, just by removing it I was able to get rid of this error
Benjamin
Benjamin3mo ago
Same here, thanks for the indirect help :p
Want results from more Discord servers?
Add your server