RootTagMissingFromViewException error when loading Custom Dashboard with custom widgets

I have a custom dashboard with many widgets, when i first login after a 'composer i / update' i keep getting this error but it disappears after refreshing the page. Any help?
No description
11 Replies
LeandroFerreira
Did you add a root tag in the widgets?
<div>
<!-- your code... -->
</div>
<div>
<!-- your code... -->
</div>
marsep95
marsep952w ago
This is how all my widgets are
No description
LeandroFerreira
The root tag should be x-filament-widgets::widget. Have you tried disabling some widgets to identify where the issue might be?
marsep95
marsep952w ago
Yes, I have tried one by one. No one solves it.
LeandroFerreira
weird.. php artisan about --only=Filament what is the filament version? maybe the issue isn't in the widgets...
marsep95
marsep952w ago
Anyway, I solved it ignoring this type of Exception class. Filament version is 3.2.92
toeknee
toeknee2w ago
Inspect your browser as livewire will tell you the error and you should narrow it down, ignoring the exception is not a good solution.
LeandroFerreira
not related to the issue, you could create a custom theme to customize the css https://filamentphp.com/docs/3.x/panels/themes#creating-a-custom-theme
marsep95
marsep952w ago
I know that ignoring exception is like hiding an elephant under the rug, but for now, while I inspect furthermore, I have to, because it's very annoying. The browser is not giving any helping information. Tried to debug, but don't know where to breakpoint.
LeandroFerreira
Consider creating a fresh install to see if the issue persists. If the same problem occurs, please share the code on GitHub, and I can take a look.
marsep95
marsep952w ago
I appreciate your help, sir! Thank you!